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
Given:
public class X {
}
and
public final class Y extends X {
}
What is the result of compiling these two classes?
Correct Answer: B Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Given the code fragment:
Path source = Paths.get("/repo/a/a.txt");
Path destination = Paths.get("/repo");
Files.move(source, destination); // line 1
Files.delete (source); // line 2
Assuming the source file and destination folder exist, what Is the result?
Correct Answer: B Vote an answer
Which code fragment compiles?
Correct Answer: B Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Given:
List<String> longlist = List.of("Hello","World","Beat");
List<String> shortlist = new ArrayList<>();
Which code fragment correctly forms a short list of words containing the letter "e"?
Correct Answer: C Vote an answer
Given:
List<String> list1 = new ArrayList<>();
list1.add("A");
list1.add("B");
List list2 = List.copyOf(list1);
list2.add("C");
List<List<String>> list3 = List.of(list1, list2);
System.out.println(list3);
What is the result?
Correct Answer: D Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Given:

What is the result?
Correct Answer: C Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Which statement about a functional interface is true?
Correct Answer: E Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Given:

and:

Which code, when inserted on line 10, prints the number of unique localities from the roster list?
Correct Answer: C Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
0
0
0
10