移动端

  • 题王微信公众号

    题王微信公众号

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

计算机考试 | Oracle认证考试

模式切换

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

章节目录

单选题 Click the Exhibit button. Given: ClassA a = new ClassA();a.methodA(); What is the result?()

A

Compilation fails.

B

ClassC is displayed.

C

The code runs with no output.

D

An exception is thrown at runtime.

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

A

1

B

2

C

12

D

Compilation fails.

E

No output is produced.

多选题 Given: A programmer is developing a class Key, that will be used as a key in a standard java.util.HashMap. Which two methods should be overridden to assure that Key works correctly as a key?()

A

public int hashCode()

B

public boolean equals(Key k)

C

public int compareTo(Object o)

D

public boolean equals(Object o)

E

public boolean compareTo(Key k)

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

A

Compilation fails.

B

An exception is thrown at runtime.

C

[608, 610, 612, 629] [608, 610]

D

[608, 610, 612, 629] [608, 610, 629]

E

[606, 608, 610, 612, 629] [608, 610]

单选题 Given: What can be a result?()

A

Compilation fails.

B

An exception is thrown at runtime.

C

The code executes and prints "StartedComplete".

D

The code executes and prints "StartedComplete0123".

E

The code executes and prints "Started0123Complete".

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

A

Canada

B

null Canada

C

Canada null

D

Canada Canada

E

Compilation fails due to an error on line 26.

F

Compilation fails due to an error on line 29.

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

A

collie

B

harrier

C

Compilation fails.

D

collie harrier

E

An exception is thrown at runtime.

最新资讯

首页 上一页 1 2 3 4 5 下一页 尾页 /

到第