Oracle Java SE 11 Developer - 1Z0-819 Exam Practice Test
Given the code fragment:

What is the result?

What is the result?
Correct Answer: B
Given:

What is the result?

What is the result?
Correct Answer: C
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?

What security measures should be added to this method so that it meets the requirements for a customer accessible method?
Correct Answer: B
Which three annotation uses are valid? (Choose three.)
Correct Answer: A,C,E
Given:

executed using this command:
java Myclass My Car is red
What is the output of this class?

executed using this command:
java Myclass My Car is red
What is the output of this class?
Correct Answer: E
Given the code fragment:

Which can replace line 2?

Which can replace line 2?
Correct Answer: C
Given:

and

What is the result?

and

What is the result?
Correct Answer: E
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
Given:
jdeps -jdkinternals C:\workspace4\SimpleSecurity\jar\classes.jar
Which describes the expected output?
jdeps -jdkinternals C:\workspace4\SimpleSecurity\jar\classes.jar
Which describes the expected output?
Correct Answer: C
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
Given:

You want the code to produce this output:
John
Joe
Jane
Which code fragment should be inserted on line 1 and line 2 to produce the output?

You want the code to produce this output:
John
Joe
Jane
Which code fragment should be inserted on line 1 and line 2 to produce the output?
Correct Answer: C
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?
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?
Correct Answer: A
Given:

Which two lines inserted in line 1 will allow this code to compile? (Choose two.)

Which two lines inserted in line 1 will allow this code to compile? (Choose two.)
Correct Answer: A,B
Given the code fragment:

What is the output?

What is the output?
Correct Answer: A
Given:

What is the result?

What is the result?
Correct Answer: C
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).