试题详情
- 单项选择题 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. new B().process(); 19. } What is the result?()
A、 B
B、 The code runs with no output.
C、 Compilation fails because of an error in line 12.
D、 Compilation fails because of an error in line 15.
E、 Compilation fails because of an error in line 18.
- A
关注下方微信公众号,在线模考后查看
热门试题
- public class&e
- A developer&en
- A developer&en
- switch(x) {&en
- Which three
- 删除File实例所对应文件的方法是?()
- public class&e
- 关于表格包型布局管理器的特点,一下描述中
- 利用递归方法求5!。
- public class&e
- A developer&en
- 已知: 则输出为()?
- Which three
- String foo&ens
- 以下关于分之语句的作用,描述正确的是()
- 关于try...catch...fina
- 现有: class&ens
- class WhileTes
- package test1;
- Under which&ens