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

Java SE 1z0-819 Oracle Study Notes

Page: 6 / 10
Total 257 questions

Java SE 11 Developer Questions and Answers

Question 21

Given the code fragment:

Which two statement inserted independently at line 1 enable this code to print PRRT?

Options:

A.

i—;

B.

continue b;

C.

break b;

D.

j--;

E.

continue a;

F.

break a ;

Question 22

Given the code fragment:

Which can replace line 2?

Options:

A.

UnaryOperator u = (int i) -> i * 2;

B.

UnaryOperator u = (var i) -> (i * 2);

C.

UnaryOperator u = var i -> { return i * 2; };

D.

UnaryOperator u = i -> { return i * 2);

Question 23

Given:

What is the result?

Options:

A.

abyssinian

oxicat

korat

laperm

bengal

sphynx

B.

abyssinian

bengal

korat

laperm

oxicat

sphynx

C.

sphynx

oxicat

laperm

korat

bengal

abyssinian

D.

nothing

Question 24

Given:

What is the result?

Options:

A.

nothing

B.

0

C.

10

D.

0 4 9

Page: 6 / 10
Total 257 questions