问题:
1. class Calc {
2. public static void main(String [] args) {
3. try {
4. int x = Integer.parseInt("42a");
5. //insert code here
6. System.out.print("oops ");
7. }
8. }
9. }
下面哪两行分别插入到第五行,会导致输出“oops”?()
A . } catch (ClassCastException c) {
B . } catch (IllegalStateException c) {
C . } catch (NumberFormatException n) {
D . } catch (IllegalArgumentException e) {
1. class Calc {
2. public static void main(String [] args) {
3. try {
4. int x = Integer.parseInt("42a");
5. //insert code here
6. System.out.print("oops ");
7. }
8. }
9. }
下面哪两行分别插入到第五行,会导致输出“oops”?()
● 参考解析
本题暂无解析