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

问题:

[单选]

11.classA { 
12. public void process() { System.out.print(”A “); } } 
13. class B extends A { 
14. public void process() throws RuntimeException { 
15. super.process(); 
16. if (true) throw new RuntimeException(); 
17. System.out.print(“B”); }} 
18. public static void main(String[] args) { 
19. try { ((A)new B()).process(); } 
20. catch (Exception e) { System.out.print(”Exception “); } 
21. } 
What is the result?() 

A .  Exception
B .  A Exception
C .  A Exception B
D .  A B Exception
E .  Compilation fails because of an error in line 14.
F .  Compilation fails because of an error in line 19.

简述音乐表现性评价设计的三个步骤。 下列药剂采用吸附架桥原理的是() 硫酸铝。 聚合氯化铝。 复合铁铝。 阳离子聚丙烯酰胺。 简述中国古代整体思维的特征。 简述教育心理学的学习理论观。 蔡楚生

11.classA { 
12. public void process() { System.out.print(”A “); } } 
13. class B extends A { 
14. public void process() throws RuntimeException { 
15. super.process(); 
16. if (true) throw new RuntimeException(); 
17. System.out.print(“B”); }} 
18. public static void main(String[] args) { 
19. try { ((A)new B()).process(); } 
20. catch (Exception e) { System.out.print(”Exception “); } 
21. } 
What is the result?() 

参考答案:

  参考解析

本题暂无解析

在线 客服