移动端

  • 题王微信公众号

    题王微信公众号

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

计算机考试 | Oracle认证考试

模式切换

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

章节目录

单选题 Given: Which code, inserted at line 15, allows the class Sprite to compile?()

A

Foo { public int bar() { return 1; }

B

new Foo { public int bar() { return 1; }

C

new Foo() { public int bar() { return 1; }

D

new class Foo { public int bar() { return 1; }

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

A

B

B

The code runs with no output.

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 18.

单选题 Given a class Repetition: Which code should be inserted at line 1 of Demo.java to compile and run Demo to print "pizzapizza"?()

A

import utils.*;

B

static import utils.*;

C

import utils.Repetition.*;

D

static import utils.Repetition.*;

E

import utils.Repetition.twice();

F

import static utils.Repetition.twice;

G

static import utils.Repetition.twice;

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

A

Compilation fails.

B

The file system has a new empty directory named dir.

C

The file system has a new empty directory named newDir.

D

The file system has a directory named dir, containing a file f1.txt.

E

The file system has a directory named newDir, containing a file f1.txt.

多选题 Given: Which two are true? ()

A

The output is mm.

B

The output is mc.

C

Component is-a Meter.

D

Component has-a Meter.

E

DeluxeThingy is-a Component.

F

DeluxeThingy has-a Component.

单选题 Click the Exhibit button. Which statement is true about the classes and interfaces in the exhibit?()

A

Compilation will succeed for all classes and interfaces.

B

Compilation of class C will fail because of an error in line 2.

C

Compilation of class C will fail because of an error in line 6.

D

Compilation of class AImpl will fail because of an error in line 2

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

A

Compilation fails.

B

atom granite

C

granite granite

D

atom granite granite

E

An exception is thrown at runtime.

F

atom granite atom granite

最新资讯

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

到第