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 07, 2026
Which code fragment prints 100 random numbers?
Correct Answer: B 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
Examine these module declarations:

Which two statements are correct? (Choose two.)
Correct Answer: A,D Vote an answer
Given:

and

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

Which two independent changes will make the Main class compile? (Choose two.)
Correct Answer: A,E Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Given the code fragment:
var pool = Executors.newFixedThreadPool(5);
Future outcome = pool.submit(() -> 1);
Which type of lambda expression is passed into submit()?
Correct Answer: C Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Given:

Which statement on line 1 enables this code fragment to compile?
Correct Answer: D Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
A bookstore's sales are represented by a list of Sale objects populated with the name of the customer and the books they purchased.
public class Sale {
private String customer;
private List<Book> items;
// constructor, setters and getters not shown
}
public class Book {
private String name;
private double price;
// constructor, setters and getters not shown
}
Given a list of Sale objects, tList, which code fragment creates a list of total sales for each customer in ascending order?
Correct Answer: C Vote an answer
0
0
0
10