Summer Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ecus65

Oracle 1z0-808 - Java SE 8 Programmer I

Page: 3 / 7
Total 224 questions

Given the code fragment:

Assume that the system date is June 20, 2014. What is the result?

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Given this code for the classes MyException and Test:

What is the result?

A.

A

B.

AB

C.

A compile time error occurs at line n1.

D.

B

E.

I

Given:

What is the result?

A.

10

20

B.

A compile time error occurs

C.

20

20

D.

10

10

What is the name of the Java concept that uses access modifiers to protect variables and hide them within a class?

A.

Encapsulation

B.

Inheritance

C.

Abstraction

D.

Instantiation

E.

Polymorphism

Given the code fragment:

What is the result?

A.

3

B.

0

C.

Compilation fails.

D.

-1

Which statement is true about Java byte code?

A.

It can run on any platform.

B.

It can run on any platform only if it was compiled for that platform.

C.

It can run on any platform that has the Java Runtime Environment.

D.

It can run on any platform that has a Java compiler.

E.

It can run on any platform only if that platform has both the Java Runtime Environment and a Java compiler.

Given the code fragments:

What is the result?

A.

Compilation fails only at line n1.

B.

Compilation fails only at line n2.

C.

Tool::exportTool::export

D.

Compilation fails at both line n1 and line2.

E.

RTool::exportTool::export

Given the code fragment:

Which three code fragments are valid at line n1?

A.

Option A

B.

Option B

C.

Option C

D.

Option D

E.

Option E

Given:

How many MarkList instances are created in memory at runtime?

A.

1

B.

2

C.

3

D.

4

Given the code fragment:

What is the result?

A.

5 : 5

B.

10 : 10

C.

5 : 10

D.

Compilation fails.