移动端

  • 题王微信公众号

    题王微信公众号

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

计算机考试 | Oracle认证考试

模式切换

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

章节目录

单选题 Given classes defined in two different files: What is required at line 5 in class SomeApp to use the process method of BitUtils?()

A

process(bytes);

B

BitUtils.process(bytes);

C

util.BitUtils.process(bytes);

D

SomeApp cannot use methods in BitUtils.

E

import util.BitUtils.*; process(bytes);

单选题 Given a method that must ensure that its parameter is not null: What, inserted at line 12, is the appropriate way to handle a null value?()

A

assert value == null;

B

assert value != null, "value is null";

C

if (value == null) { throw new AssertionException("value is null"); }

D

if (value == null) { throw new IllegalArgumentException("value is null"); }

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

A

3,2,1

B

1,2,3

C

Compilation fails.

D

The code runs with no output.

E

An exception is thrown at runtime.

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

A

12

B

The code runs with no output.

C

An exception is thrown at runtime.

D

Compilation fails because of an error in line 21.

E

Compilation fails because of an error in line 22.

F

Compilation fails because of an error in line 31.

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

A

420 is the output.

B

An exception is thrown at runtime.

C

All constructors must be declared public.

D

Constructors CANNOT use the private modifier.

E

Constructors CANNOT use the protected modifier.

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

A

13

B

134

C

1234

D

2134

单选题 Given that the current directory is empty, and that the user has read and write privileges to the currentdirectory, and the following: Which statement is true?()

A

Compilation fails.

B

Nothing is added to the file system.

C

Only a new file is created on the file system.

D

Only a new directory is created on the file system.

E

Both a new file and a new directory are created on the file system.

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

A

The value "4" is printed at the command line.

B

Compilation fails because of an error in line 5.

C

Compilation fails because of an error in line 9.

D

A NullPointerException occurs at runtime.

E

A NumberFormatException occurs at runtime.

F

An IllegalStateException occurs at runtime.

多选题 Given: Which two methods, inserted individually, correctly complete the Three class?()

A

public void foo() {}

B

public int foo() { return 3; }

C

public Two foo() { return this; }

D

public One foo() { return this; }

E

public Object foo() { return this; }

最新资讯

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

到第