移动端

  • 题王微信公众号

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

计算机考试 | 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

 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.

多选题 Given:   12. NumberFormat nf = NumberFormat.getInstance();   13. nf.setMaximumFractionDigits(4);   14. nf.setMinimumFractionDigits(2);   15. String a = nf.format(3.1415926);   16. String b = nf.format(2);   Which two statements are true about the result if the default locale is Locale.US?()

A

 The value of b is 2.00.

B

 The value of a is 3.141.

C

 The value of a is 3.14.

D

 The value of b is 2.0000.

E

 The value of a is 3.1415.

F

 The value of a is 3.1416.

G

 The value of b is 2.

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

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

多选题 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; }

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

A

 An exception is thrown at runtime.

B

 int Long

C

 Compilation fails.

D

 Short Long

最新资讯

1 2 3 下一页 尾页 /

到第