试题详情
- 多项选择题 1. public class A { 2. public void method1() { 3. B b=new B(); 4. b.method2(); 5. // more code here 6. } 7. } 1. public class B { 2. public void method2() { 3.C c=new C(); 4. c.method3(); 5. // more code here 6. } 7. } 1. public class C { 2. public void method3() { 3. // more code here 4. } 5. } Given: 25. try { 26. A a=new A(); 27. a.method1(); 28. } catch (Exception e) { 29. System.out.print(”an error occurred”); 30. } Which two are true if a NullPointerException is thrown on line 3 of class C?()
A、 The application will crash.
B、 The code on line 29 will be executed.
C、 The code on line 5 of class A will execute.
D、 The code on line 5 of class B will execute.
E、 The exception will be propagated back to line 27.
- B,E
关注下方微信公众号,在线模考后查看
热门试题
- 下列类Account的构造方法中,声明正
- ()意味着一个操作在不同的类中可以有不同
- A developer&en
- 以下关于Applet的描述,哪项错误?(
- public class&e
- 给定一个100行和100列的整数方阵,求
- 25.intx=12; 2
- public class&e
- What is th
- class Bird&ens
- public interfa
- Given the&ensp
- 下面有关JVM内存,说法错误的是()。
- public class Pass{
- Which method
- Click the
- What will&ensp
- Click the
- 已知: 则输出为()
- 打印出所有的"水仙花数",所谓"水仙花数