当前位置:SCJP程序员认证考试题库

问题:

[多选]

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.

储存装有可燃气体瓶的库房,要放置可靠的()装置。 防震。 排水。 装卸。 避雷。 用氧化锆分析仪测氧时,温度波动给仪表带来很大的误差,常见的消除误差的方式有哪几种? 中书省的主要官员有哪些? 上海某超高层建筑由于工期紧张,外幕墙施工与室内精装修施工进行搭接施工,采用四台SCD200/200G型高速施工电梯完成人员及材料的运输。电梯安装位置与各楼层过桥通道连接,并设置相应的安全防护措施。幕墙甩口,等电梯拆除后实行封闭。 装饰装修由某装饰装饰公司分包,由于该工程工期影响巨大,必须按合同工期完工,该装饰公司临时紧急调集一批装饰普工增援油漆作业。由该项目原油漆班组每人带一名普工组成一个小组,施工现场一边操作一边简单培训后开始正式单独油饰施工。 尽管作业强度大、工作时间长,但所有工人均未出现身体不适。该装饰公司将原定于身体检查的费用直接发放给施工人员后,将该批装饰普工退回原工作班组。 由于本工程拟创省级安全工地,施工现场建立了相应的制度,对作业人员实施相应的培训。对于施工现场产生的固体废弃物,也按相关要求编制了相应的处理预案。 问题 指出本案例中职业卫生与防护管理方面的不妥之处,并简述正确做法。 图书馆学的研究对象是()及其相关因素。

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?()

参考答案:

  参考解析

本题暂无解析

在线 客服