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

Download Latest 1z0-808 Questions

Page: 4 / 17
Total 224 questions

Java SE 8 Programmer I Questions and Answers

Question 13

Given the code fragment:

What is the result?

Options:

A.

Sum is 600

B.

Compilation fails at line n1.

C.

Compilation fails at line n2.

D.

A ClassCastException is thrown at line n1.

E.

A ClassCastException is thrown at line n2.

Question 14

Given:

Acc.java:

Which statement is true?

Options:

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.

Question 15

Given:

What is the result?

Options:

A.

Good Luck!

B.

Good Day!

C.

Welcome!

D.

Hello!

Question 16

Given the following code:

What are the values of each element in intArr after this code has executed?

Options:

A.

15, 60, 45, 90, 75

B.

15, 90, 45, 90, 75

C.

15, 30, 75, 60, 90

D.

15, 30, 90, 60, 90

E.

15, 4, 45, 60, 90

Page: 4 / 17
Total 224 questions