13、[简答题] 【看代码,分析结果】 根据给出的相应代码,分析可能产生的结果。 public static void main(String[]args){ System.out.println(Integer.parseInt("hello")); }

 

 把字符串“hello”转换为Integer类型时,当然会报数字格式化异常啦NumberFormatException

posted @ 2022-04-09 17:13  不只是智能hello  阅读(30)  评论(0)    收藏  举报