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

Java SE 1z0-819 Full Course Free

Page: 2 / 10
Total 296 questions

Java SE 11 Developer Questions and Answers

Question 5

Given:

and

checkQuality(QUALITY.A);

and

Which code fragment can be inserted into the switch statement to print Best?

Options:

A.

QUALITY.A.ValueOf()

B.

A

C.

A.toString()

D.

QUALITY.A

Question 6

Given:

Which two codes, independently, can be inserted in line to 1 compile?

Options:

A.

Abacus aba = (int m, int n) -> { m * n };

B.

Abacus aba = (int e, int f) -> { return e * f; };

C.

Abacus aba = (a, b) -> a * b;

D.

Abacus aba = v, w -> x * y;

E.

Abacus aba = (int i, j) -> ( return i * j; };

Question 7

There is a copyServiceAPI that has the org.copyservice. spi. Copy interface

To use this service in a module, which module- info.java would be correct?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 8

Which code fragment compiles?

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Page: 2 / 10
Total 296 questions