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

  • Exam Code/Number: 1Z0-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 08, 2026
Assuming the Widget class has a getPrice method, this code does not compile:

Which two statements, independently, would allow this code to compile? (Choose two.)
Correct Answer: A,D Vote an answer
Given the declaration:

Examine this code fragment:
/* Loc1 */ class ProcessOrders { ... }
Which two annotations may be applied at Loc1 in the code fragment? (Choose two.)
Correct Answer: A,B Vote an answer
Given:

You want to obtain the Stream object on reading the file. Which code inserted on line 1 will accomplish this?
Correct Answer: A Vote an answer
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?
Correct Answer: B Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Given:

You want to use the myResource class in a try-with-resources statement. Which change will accomplish this?
Correct Answer: D Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Given:

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

When is the readObject method called?
Correct Answer: E Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Given these two classes:


And given this fragment:

Which describes the fragment?
Correct Answer: A Vote an answer
0
0
0
10