Weekend Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: Board70

1z0-819 Exam Dumps - Oracle Java SE Questions and Answers

Question # 14

Given:

LocalDate d1 = LocalDate.of(1997,2,7);

DateTimeFormatter dtf =

DateTimeFormatter.ofPattern( /*insert code here*/ );

System.out.println(dtf.format (d1));

Which pattern formats the date as Friday 7th of February 1997?

Options:

A.

“eeee dd+”th of”+ MMM yyyy”

B.

“eeee dd'th of' MMM yyyy”

C.

“eeee d+”th of”+ MMMM yyyy”

D.

“eeee d’th of’ MMMM yyyy”

Buy Now
Question # 15

Given the code fragment:

Which can replace line 11?

Options:

A.

UnaryOperator uo = (var x ) -> (x * 3);

B.

UnaryOperatoruo = var x -> { return x 3 ; };

C.

UnaryOperatoruo = x -> { return x * 3; };

D.

UnaryOperatoruo = (int x) -> x * 3;

Buy Now
Question # 16

Given:

What is the result?

Options:

A.

Dr. Who

B.

Dr. Null

C.

An exception is thrown at runtime.

D.

null

Buy Now
Question # 17

What change will cause the code to compile successfully?

Options:

A.

Insert PriceChecker (?) prod on line 1.

B.

Insert PriceChecker <> prod on line 1.

C.

Insert PriceChecker prod on line 1.

D.

Insert PriceChecker prod on line 1.

Buy Now
Question # 18

Given:

Which two are correct? (Choose two.)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Question # 19

Given:

Which two lines can replace line 1 so that the Y class compiles? (Choose two.)

Options:

A.

map.forEach((k, v) -> set(v)));

B.

set(map.values());

C.

super.set(List map)

D.

super.set(map.values());

E.

set(map)

Buy Now
Question # 20

Given the code fragment:

What is the result?

Options:

A.

13 5 7 9

B.

1 3 5 7 9 11

C.

2 4 6 B 10

D.

2 4 6 8

Buy Now
Question # 21

Given the code fragment:

What is the output?

Options:

A.

The compilation fails.

B.

[-1, -2, -3]

C.

[-3, -2, -1]

D.

A runtime exception is thrown.

Buy Now
Question # 22

Which interface in the java.util.function package can return a primitive type?

Options:

A.

ToDoubleFunction

B.

Supplier

C.

BiFunction

D.

LongConsumer

Buy Now
Question # 23

Why does this compilation fail?

Options:

A.

The method Y. print (object) does not call the method super.print (object)

B.

The method x. print (object) is not accessible to Y.

C.

In method x. print (Collection), system. Out :: prints is an invalid Java identifier.

D.

The method print (object) and the method print (object…) are duplicates of each other.

E.

The method Y. print (object…) cannot override the final method x.print (object….).

Buy Now
Exam Code: 1z0-819
Exam Name: Java SE 11 Developer
Last Update: Feb 23, 2025
Questions: 296
1z0-819 pdf

1z0-819 PDF

$25.5  $84.99
1z0-819 Engine

1z0-819 Testing Engine

$28.5  $94.99
1z0-819 PDF + Engine

1z0-819 PDF + Testing Engine

$40.5  $134.99