移动端

  • 题王微信公众号

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

计算机考试 | Oracle认证考试

模式切换

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

章节目录

单选题 Given:  Which code, inserted at line 15, creates an instance of the Point class defined in Line?()

A

 Line l = new Line() ; l.Point p = new l.Point();

B

 Line.Point p = new Line.Point();

C

 The Point class cannot be instatiated at line 15.

D

 Point p = new Point();

单选题 Given:   What is the result?()

A

 If you define D e = new E(), then e.bMethod() invokes the version of bMethod() defined in Line 5.

B

 If you define D e = (D)(new E()), then e.bMethod() invokes the version of bMethod() defined in Line 5.

C

 Compilation fails because of an error in line 9.

D

 If you define D e = (D)(new E()), then e.bMethod() invokes the version of bMethod() defined in Line 9.

E

 Compilation fails because of an error in line 3.

F

 Compilation fails because of an error in line 7.

单选题 Given: What is the result?()

A

 An exception is thrown at runtime.

B

 r, e, o,

C

 Compilation fails.

D

 r, t, t,

单选题 Given: What is the result? ()

A

 A new Item object is created with the preferred value in the id attribute.

B

 The attribute id in the Item object is modified to the new value.

C

 Compilation fails.

D

 An exception is thrown at runtime.

E

 The attribute id in the Item object remains unchanged.

单选题 Click the Exhibit button.   What is the output of the program shown in the exhibit? ()

A

 300-300-100-100-100

B

 300-300-300-100-100

C

 300-300-300-300-100

D

 300-100-100-100-100

单选题 Click the Exhibit button.   What is the result?()

A

 The code will deadlock.

B

 The code may run with output "2 0 6 4".

C

 The code may run with no output.

D

 The code may run with output "0 6".

E

 An exception is thrown at runtime.

F

 The code may run with output "0 2 4 6".

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

单选题 Click the Exhibit button.   Given this code from Class B:   25. A a1 = new A();   26. A a2 = new A();   27. A a3 = new A();   28. System.out.println(A.getInstanceCount());   What is the result?()

A

 Compilation of class A fails.

B

 Line 28 prints the value 3 to System.out.

C

 Line 28 prints the value 1 to System.out.

D

 Compilation fails because of an error on line 28.

E

 A runtime error occurs when line 25 executes.

最新资讯

1 2 3 下一页 尾页 /

到第