Limited-Time Offer: Enjoy 50% Savings! Ends in 00h 00m 00s Coupon code: 50OFF
Skip to content

Free Oracle Java SE 11 Developer 1Z0-819 Exam Questions

Page: 1 / 20 Total 296 questions

Want more questions? Get Premium Access.

Question 1

Given:

What is the result?

Correct Answer: E. 11

Question 2

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

Correct Answer: A. ToDoubleFunction

Question 3

Given:

What is the result?

Correct Answer: E. abcd

Question 4

Given:

Which code fragment on line 1 makes the m map contain the employee with the highest salary for each neighborhood?

A)

B)

C)

D)

Correct Answer: D. Option D

Question 5

Given the code fragment:

What is the result?

Correct Answer: A. 2

Question 6

Given:

What is the result?

Correct Answer: F. 3

Question 7

Given:

What is the result?

Correct Answer: A. 42

Question 8

Given:

You want to obtain the Stream object on reading the file. Which code inserted on line 1 will accomplish this?

Correct Answer: C. var lines = Files.readAllLines(Paths.get(INPUT_FILE_NAME));

Question 9

Given:

What is the type of the local variable x?

Correct Answer: D. String

Question 10

Which two commands are used to identify class and module dependencies? (Choose two.)

Correct Answer: C. jdeps --list-deps; E. java --show-module-resolution

Question 11

Your organization makes mlib.jar available to your cloud customers. While working on a code cleanup project for mlib.jar, you see this method by customers:

What security measures should be added to this method so that it meets the requirements for a customer accessible method?

A.

Correct Answer: D. Enclose the call to new Socket In an AccessController.doPrivileged block.

Question 12

Given the code fragment:

You want to display the value of currency as $100.00.

Which code inserted on line 1 will accomplish this?

Correct Answer: A. NumberFormat formatter = NumberFormat.getInstance(locale).getCurrency();

Question 13

What change will cause the code to compile successfully?

Correct Answer: A. Insert PriceChecker (?) prod on line 1.

Question 14

Given:

and

Which code fragment on line 1 makes the s1 set contain the names of all employees born before January 1, 1989?

Correct Answer: B. Option B

Question 15

Given:

What is the result?

A)

B)

C)

D)

Correct Answer: A. Option A