移动端

  • 题王微信公众号

    题王微信公众号

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

计算机考试 | Java认证考试

科目:

SCJP程序员认证考试

[切换]
题库
练习
考试
资讯

模式切换

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

章节目录

多选题 What two must the programmer do to correct the compilation errors?()

A

insert a call to this() in the Car constructor

B

insert a call to this() in the MeGo constructor

C

insert a call to super() in the MeGo constructor

D

insert a call to super(vin) in the MeGo constructor

E

change the wheelCount variable in Car to protected

F

change line 3 in the MeGo class to super.wheelCount=3

单选题 Which statement is true about the set variable on line 12?()

A

The set variable contains all six elements from the coll collection, and the order is guaranteed to be preserved.

B

The set variable contains only three elements from the coll collection, and the order is guaranteed to be preserved.

C

The set variable contains all six elements from the coll collection, but the order is NOT guaranteed to be preserved.

D

The set variable contains only three elements from the coll collection, but the order is NOT guaranteed to be preserved.

多选题 Which of the following statements are legal?()         

A

 long l = 4990;

B

 int i = 4L;

C

 float f = 1.1;

D

 double d = 34.4;

E

 double t = 0.9F;

多选题 Which statements about static inner classes are true?()

A

 A static inner class requires a static initializer.

B

 A static inner class requires an instance of the enclosing class.

C

 A static inner class has no reference to an instance of the enclosing class.

D

 A static inner class has access to the non-static members of the outer class.

E

 Static members of a static inner class can be referenced using the class name of the static inner  class.

单选题 What is the result?()

A

Hello

B

Hello World

C

Compilation fails.

D

Hello World 5

E

The code runs with no output.

F

An exception is thrown at runtime.

1 2 3 4 5 下一页 尾页 /

到第