移动端

  • 题王微信公众号

    题王微信公众号

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

计算机考试 | Oracle认证考试

模式切换

0 0 0
我的错题 我的收藏 学习笔记

章节目录

单选题 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.

多选题 Click the Exhibit button.   Given: Which two statements are true if a NullPointerException is thrown on line 3 of class C?()

A

 The application will crash.

B

 The code on line 29 will be executed.

C

 The code on line 5 of class A will execute.

D

 The exception will be propagated back to line 27.

E

 The code on line 5 of class B will execute.

单选题 Given: What is the result of calling search with a valid List implementation? ()

A

 0

B

 The result is undefined.

C

 a

D

 2

E

 1

F

 c

G

 b

单选题 Given:   12. System.out.format("Pi is approximately %d.", Math.PI);   What is the result?()

A

 An exception is thrown at runtime.

B

 Pi is approximately 3.

C

 Pi is approximately 3.141593.

D

 Compilation fails.

多选题 Given: Which five methods, inserted independently at line 5, will compile?()

A

 protected int blipvert(long x) { return 0; }

B

 protected long blipvert(int x) { return 0; }

C

 private int blipvert(long x) { return 0; }

D

 private int blipvert(int x) { return 0; }

E

 public int blipvert(int x) { return 0; }

F

 protected long blipvert(long x) { return 0; }

G

 protected long blipvert(int x, int y) { return 0; }

最新资讯

首页 上一页 1 2 3 尾页 /

到第