移动端

  • 题王微信公众号

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

计算机考试 | Oracle认证考试

模式切换

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

章节目录

多选题 Given: Which two code fragments, inserted independently at line 13, will compile?()

A

super(name, baseSalary);

B

this.commission = commission;

C

super(); this.commission = commission;

D

this.commission = commission; super();

E

super(name, baseSalary); this.commission = commission;

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

A

Cat

B

Dog

C

Compilation fails.

D

The code runs with no output.

E

An exception is thrown at runtime.

单选题 Given: Which statement is true?()

A

The equals method does NOT properly override the Object.equals method.

B

Compilation fails because the private attribute p.name cannot be accessed in line 5.

C

To work correctly with hash-based data structures,this class must also implement the hashCode method.

D

When adding Person objects to a java.util.Set collection,the equals method in line 4 will prevent duplicates.

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

A

Compilation fails.

B

An exception is thrown at runtime.

C

The code executes normally and prints "bar".

D

The code executes normally, but nothing prints.

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

A

Mr. John Doe

B

An exception is thrown at runtime.

C

Compilation fails because of an error in line 12.

D

Compilation fails because of an error in line 15.

E

Compilation fails because of an error in line 20.

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

A

0.0

B

Compilation fails.

C

A ParseException is thrown by the parse method at runtime.

D

A NumberFormatException is thrown by the parse method at runtime.

单选题 Given: 11.double input = 314159.26; 12.NumberFormat nf = NumberFormat.getInstance(Locale.ITALIAN); 13.String b; 14.//insert code here Which code, inserted at line 14, sets the value of b to 314.159,26?()

A

b = nf.parse( input );

B

b = nf.format( input );

C

b = nf.equals( input );

D

b = nf.parseObject( input );

单选题 Given: If the user types the password aiko when prompted, what is the result?()

A

password:got

B

password:got aiko

C

password:aikogot aiko

D

An exception is thrown at runtime.

E

Compilation fails due to an error on line 8.

1 2 3 4 5 下一页 尾页 /

到第