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: 4 / 7
Total 224 questions

Given the code fragment:

What is the result?

A.

2012-02-10 00:00

B.

2012-01-30

C.

2012-02-10

D.

A DateTimeException is thrown at runtime.

Given the code fragment:

What is the result?

A.

3

B.

4

C.

-1

D.

Compilation fails.

Given the code fragment:

What is the result?

A.

A B C Work done

B.

A B C D Work done

C.

A Work done

D.

Compilation fails

Given:

What is the result?

A.

C B A

B.

C

C.

A B C

D.

Compilation fails at line n1 and line n2

Given:

Acc.java:

Which statement is true?

A.

Both p and s are accessible via obj.

B.

Only s is accessible via obj.

C.

Both r and s are accessible via obj.

D.

p, r, and s are accessible via obj.

Which three statements are true about exception handling? (Choose three.)

A.

Only unchecked exceptions can be rethrown.

B.

All subclasses of the RuntimeException class are not recoverable.

C.

The parameter in a catch block is of Throwable type.

D.

All subclasses of the RuntimeException class must be caught or declared to be thrown.

E.

All subclasses of the RuntimeException class are unchecked exceptions.

F.

All subclasses of the Error class are not recoverable.

Given the code fragment:

Which two modifications, when made independently, enable the code to print Joe:true: 100.0? (Choose two.)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

E.

Option E

Given:

What is the result?

A.

A B C D

B.

A C D

C.

A C D D

D.

A B D

E.

A B D C

Given:

What is the result?

A.

100 200 : 0 0 :

B.

100 200 : 100 0 :

C.

100 200 : 100 200 :

D.

0 0 : 100 0 :

Given the following classes:

Which two options fail to compile when placed at line n1 of the main method? (Choose two.)

A.

employee.salary = 50_000;

B.

director.salary = 80_000;

C.

employee.budget = 200_000;

D.

manager.budget = 1_000_000;

E.

manager.stockOption = 500;

F.

director.stockOptions = 1_000;