Oracle 1Z1-816 Actual Free Exam Questions & Community Discussion

  • Exam Code/Number: 1Z1-816
  • Exam Name/Title: Java SE 11 Programmer II
  • Certification Provider: Oracle
  • Corresponding Certification: Java Platform Standard Edition 11
  • Exam Questions: 80
  • Updated On: Jul 16, 2026
Given:

and
checkQuality(QUALITY.A);
and

Which code fragment can be inserted into the switch statement to print Best?
Correct Answer: D Vote an answer
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?
Correct Answer: B Vote an answer
Which code fragment does a service use to load the service provider with a Print interface?
Correct Answer: C Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Given this enum declaration:

Examine this code:
System.out.println(Letter.values()[1]);
What code should be written at line 5 for this code to print 200?
Correct Answer: D Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Which interface in the java.util.function package will return a void return type?
Correct Answer: A Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Given:

What action ensures successful compilation?
Correct Answer: D Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Given:

Which annotation should be used to remove warnings from compilation?
Correct Answer: D Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Given:

What code must you insert on Line 1 to enable the code to print Hello world?
Correct Answer: B Vote an answer
0
0
0
10