移动端

  • 题王微信公众号

    题王微信公众号

    微信搜“题王网”真题密题、最新资讯、考试攻略、轻松拿下考试

单选题

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

发布日期:2022-07-14

Given:   11. static class A {   12. void process()...
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.

标签: "暂无标签"

题王网让考试变得更简单

扫码关注题王,更多免费功能准备上线!

此试题出现在

Oracle认证考试

1Z0-853

去刷题