Black Friday Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Online 1z0-808 Questions Video

Page: 13 / 17
Total 224 questions

Java SE 8 Programmer I Questions and Answers

Question 49

Given the code fragment:

What is the result?

Options:

A.

true true

B.

true false

C.

false false

D.

false true

Question 50

Given the code fragment:

What is the result?

Options:

A.

100

B.

101

C.

102

D.

103

E.

Compilation fails

Question 51

Which is true about the switch statement?

Options:

A.

Its expression can evaluate to a collection of values.

B.

The break statement, at the end of each case block, is optional.

C.

Its case label literals can be changed at runtime.

D.

It must contain the default section.

Question 52

Given:

What is the result?

Options:

A.

Area is 6.0

B.

Area is 3.0

C.

Compilation fails at line n1

D.

Compilation fails at line n2.

Page: 13 / 17
Total 224 questions