单选题:下列那个调用数据类型转换方法会发生NumberFormatException异常?
下列那个调用数据类型转换方法会发生NumberFormatException异常? @[D](2)
A. Long.parseLong(“1234”)
B. Integer.parseInt(“1234”)
C. Double.parseDouble(“123.45”)
D. Integer.parseInt(“123a”)
A.Long.parseLong(“1234”)
B.Integer.parseInt(“1234”)
C.Double.parseDouble(“123.45”)
D.Integer.parseInt(“123a”)
答案:D
A. Long.parseLong(“1234”)
B. Integer.parseInt(“1234”)
C. Double.parseDouble(“123.45”)
D. Integer.parseInt(“123a”)
A.Long.parseLong(“1234”)
B.Integer.parseInt(“1234”)
C.Double.parseDouble(“123.45”)
D.Integer.parseInt(“123a”)
答案:D