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

Helping Hand Questions for 1z0-819

Page: 4 / 10
Total 296 questions

Java SE 11 Developer Questions and Answers

Question 13

Given:

What is the output?

Options:

A.

A compilation error is thrown.

B.

Message from Copier: Attempt00

C.

Message from Abstract Copier: Attempt00

D.

A runtime error is thrown.

Question 14

Which statement about a functional interface is true?

Options:

A.

It must be defined with the public access modifier.

B.

It must be annotated with @FunctionalInterface.

C.

It is declared with a single abstract method.

D.

It is declared with a single default method.

E.

It cannot have any private methods and static methods.

Question 15

Given:

and:

Which code, when inserted on line 10, prints the number of unique localities from the roster list?

Options:

A.

.map(Employee::getLocality)

.distinct()

.count();

B.

map(e −> e.getLocality())

.count();

C.

.map(e −> e.getLocality())

.collect(Collectors.toSet())

.count();

D.

.filter(Employee::getLocality)

.distinct()

.count();

Question 16

Given:

What is the result?

Options:

A.

It throws a runtime exception.

B.

Value of Euler = 2.71828

C.

The code does not compile.

D.

Value of Euler = “2.71828”

Page: 4 / 10
Total 296 questions