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

问题:

[单选]

11. static classA { 
12. void process() throws Exception { throw new Exception(); } 
13. } 
14. static class B extends A { 
15. void process() { System.out.println(”B “); } 
16. } 
17. public static void main(String[] args) { 
18.A a=new B(); 
19. a.process(); 
20.} 
What is the result?() 

A .  B
B .  The code runs with no output.
C .  An exception is thrown at runtime.
D .  Compilation fails because of an error in line 15.
E .  Compilation fails because of an error in line 18.
F .  Compilation fails because of an error in line 19.

简述指向拍感目标的歌曲所具有的特点与开始学习这类歌曲时所用的方式。 农业政策调整的原则以及步骤 简述指向先密后疏节奏型经验目标的歌曲所具有的特点与开始学习这类歌曲时所用的方式。 汽车槽车装车超量的处理方法正确是()。 应立即通知停泵、关死泵进出口阀。 立即关死鹤管阀门。 汽车槽车装车超量可发车。 将该槽车内的超装油品用胶管引流到低位卧罐或装桶。 贷款在未被机构和个人使用前,形成了机构和个人在银行的()。 资产。 负债。 存款。 贷款。

11. static classA { 
12. void process() throws Exception { throw new Exception(); } 
13. } 
14. static class B extends A { 
15. void process() { System.out.println(”B “); } 
16. } 
17. public static void main(String[] args) { 
18.A a=new B(); 
19. a.process(); 
20.} 
What is the result?() 

参考答案:

  参考解析

本题暂无解析

在线 客服