可学答题网 > 问答 > 1Z0-853题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

Given:   11. static&en


Given:   11. static class A {   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 Compilation fails because of an error in line 19.
  • B An exception is thrown at runtime.
  • C B
  • D Compilation fails because of an error in line 18.
  • E Compilation fails because of an error in line 15. 
  • F The code runs with no output.
参考答案
参考解析:
分类:1Z0-853题库
相关推荐

1、Given:   11. public&en

Given:  11. public static void main(String[] args) {  12. Object obj = new int[] {...

2、Given that a static&en

Given that a static method doIt() in a class Work represents work to be done, what&ensp...

3、表达式10>5&&6%3的值是()

表达式10>5&&6%3的值是()A-1B非零值C0D1

4、11. static classA {&en

11. static classA { 12. void process() throws Exception { throw new Exception(); } 13.&ens...

5、“频段0”的CDMA2000-1X系统沿用了AMPS的信道编号,一个AMPS

“频段0”的CDMA2000-1X系统沿用了AMPS的信道编号,一个AMPS的信道编号对应的频谱宽度是多少?()A200KHzB30KHzC25KHzD150KHz

6、连接式“2+3”&“=”&(2+3)的运算结果为( )。 A

连接式“2+3”&“=”&(2+3)的运算结果为( )。 A.“2+3=2+3” B.“2+3=5” C.“5=5” D.“5=2+3”A“2+3=2+3” B“2+3=5” C“5=5” D“5=2+3”