Winter Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

Oracle Certified Associate 1z0-808 Full Course Free

Page: 3 / 17
Total 224 questions

Java SE 8 Programmer I Questions and Answers

Question 9

Given the code fragments:

Which code fragment, when inserted at line n1, enables the code to print Hank?

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 10

Given the code fragment:

What is the result?

Options:

A.

1 2 3 0 01 2 3 0 0

B.

An Exception is thrown at run time.

C.

1 2 3 0 01 2 3

D.

1 2 31 2 3

Question 11

Which two class definitions fail to compile? (Choose two.)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

E.

Option E

Question 12

Given:

What is the result?

Options:

A.

BaseDerivedA

B.

BaseDerivedB

C.

DerivedBDerivedB

D.

DerivedBDerivedA

E.

A ClassCastException is thrown at runtime.

Page: 3 / 17
Total 224 questions