Free 1z0-816: Java SE 11 Programmer II Exam Questions and Answers
Java SE 11 Programmer II is part of Oracle Certification from Oracle University. Oracle exam codes begin 1Z0-, and modern ones end in the release year, so 1Z0-1085-26 is the 2026 release of OCI Foundations Associate. The least-known rule is the update path: a Delta exam swaps the prefix to 1D0- and appends -D while keeping the same family number, so 1Z0-1058-26 renews through 1D0-1058-26-D.
Looking for 1z0-816: Java SE 11 Programmer II exam dumps or ExamTopics questions? These practice questions cover the same ground with verified answers and explanations, a downloadable PDF and a full practice test, kept current as Oracle updates the exam.
Last updated: October 27, 2026
- Provider
- Oracle
- Questions in our bank
- 1000+
- Free to read
- First 10, with answers
- Official page
- Official Exam website
- Our test mode duration & pass mark
- 130 mins · 70%
- Verified answers
- Reviewed weekly
Recommended: Switch to Test Mode to start a practice test that simulates the real exam experience.
Question #1
Given: List<Integer> list = List.of(1, 2, 3, 4, 5, 6); Which two expressions return a stream that executes in parallel when a terminal operation is invoked? (Choose two.)
Select 2 answers.
Correct answer: C, D
Explanation
Collection.parallelStream() creates a parallel stream, and parallel() switches the whole pipeline to parallel mode no matter where it appears. The trap is chaining parallel().sequential(): the last mode call wins, so that pipeline runs sequentially. unordered() and onClose() do not change the execution mode.
Continue with 1z0-816: Java SE 11 Programmer II
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-816: Java SE 11 Programmer II, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #2
Given: List<String> names = List.of("kiwi", "fig", "apple", "plum", "date"); String s = names.stream() .sorted(Comparator.comparing(String::length) .thenComparing(Comparator.reverseOrder())) .collect(Collectors.joining(",")); System.out.println(s); What is the result?
Correct answer: B
Explanation
The primary key is length, so fig (3) comes first and apple (5) last. The three 4-letter words are ties, and thenComparing(Comparator.reverseOrder()) orders them in descending natural order: plum, kiwi, date. Without the secondary comparator, the stable sort would keep encounter order (kiwi, plum, date).
Continue with 1z0-816: Java SE 11 Programmer II
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-816: Java SE 11 Programmer II, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #3
Given: Stream.of("a", "bb", "ccc") .peek(s -> System.out.print(s + ",")) .filter(s -> s.length() > 1) .findFirst(); What is the output?
Correct answer: B
Explanation
Stream elements are processed one at a time through the whole pipeline, and findFirst is a short-circuiting terminal operation. The elements a and bb pass through peek, and the pipeline stops once bb satisfies the filter, so ccc is never visited. The terminal operation triggers processing even though the Optional result is discarded.
Continue with 1z0-816: Java SE 11 Programmer II
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-816: Java SE 11 Programmer II, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #4
Given: UnaryOperator<String> u = s -> s + "!"; IntUnaryOperator i = n -> n + 1; ToIntBiFunction<String, String> t = (a, b) -> a.length() + b.length(); System.out.println(u.apply("hi") + i.applyAsInt(4) + t.applyAsInt("ab", "cde")); What is the result?
Correct answer: A
Explanation
All three calls use the correct method names (apply, applyAsInt, applyAsInt), so the code compiles. Evaluation is left to right and the first operand is a String, so "hi!" is concatenated with 5 and then with 5. The ints are never added together, which is why hi!10 is wrong.
Continue with 1z0-816: Java SE 11 Programmer II
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-816: Java SE 11 Programmer II, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #5
Given: interface Walker { default String move() { return "walk"; } } interface Swimmer { default String move() { return "swim"; } } class Duck implements Walker, Swimmer { } The Duck class does not compile. Which two changes, applied independently, make it compile? (Choose two.)
Select 2 answers.
Correct answer: C, D
Explanation
A class that inherits two unrelated default methods with the same signature must override the method. The override must be public, because interface methods are implicitly public, and it may call one parent with Walker.super.move(). Making the class abstract does not remove the conflict, and default is not a valid modifier in a class.
Continue with 1z0-816: Java SE 11 Programmer II
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-816: Java SE 11 Programmer II, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #6
Given: Function<Integer, Integer> times3 = x -> x * 3; Function<Integer, Integer> plus2 = x -> x + 2; System.out.println(times3.compose(plus2).andThen(times3).apply(1)); What is the result?
Correct answer: D
Explanation
compose runs the argument function first, so times3.compose(plus2) computes times3(plus2(1)) = 3 * 3 = 9. andThen then applies times3 to that result, giving 27. Reversing the order of compose gives 15, and stopping after compose gives 9.
Continue with 1z0-816: Java SE 11 Programmer II
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-816: Java SE 11 Programmer II, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #7
Given: enum Level { LOW(1), MID(5), HIGH(9); private final int v; Level(int v) { this.v = v; } int v() { return v; } } public class Test { public static void main(String[] args) { Level l = Level.valueOf("MID"); System.out.println(l.ordinal() + ":" + l.compareTo(Level.HIGH) + ":" + l.v()); } } What is the result?
Correct answer: D
Explanation
Ordinals start at 0, so MID has ordinal 1. Enum.compareTo returns the difference of the ordinals (1 - 2 = -1), not the difference of the constructor values. The constructor is implicitly private, which is legal, and v() returns 5.
Continue with 1z0-816: Java SE 11 Programmer II
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-816: Java SE 11 Programmer II, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #8
Given: BiFunction<Integer, Integer, Integer> f = /* line n1 */; Which lambda expression, inserted at line n1, compiles?
Correct answer: C
Explanation
If one lambda parameter uses var, all parameters must use var, so mixing var with an implicit or explicit type fails. A statement lambda with a return type other than void must return a value on every path. The body { a + b; } is not a valid statement because it is an expression with no effect.
Continue with 1z0-816: Java SE 11 Programmer II
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-816: Java SE 11 Programmer II, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #9
Given that the file out.txt does not exist in the working directory: import java.io.*; import java.nio.file.*; public class Test { public static void main(String[] args) throws IOException { Path p = Path.of("out.txt"); try (BufferedWriter w = Files.newBufferedWriter(p)) { w.write("ab"); w.newLine(); w.write("cd"); } try (BufferedReader r = Files.newBufferedReader(p)) { System.out.println(r.readLine()); System.out.println(r.readLine()); System.out.println(r.readLine()); } } } What is the result?
Correct answer: B
Explanation
Files.newBufferedWriter creates the file when it is missing, so the first block writes two lines. BufferedReader.readLine returns null at end of stream instead of throwing EOFException or returning an empty string, so the third call prints null.
Continue with 1z0-816: Java SE 11 Programmer II
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-816: Java SE 11 Programmer II, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #10
Given: public class Outer { private int x = 10; class Inner { int x = 20; void show(int x) { System.out.println(x + " " + this.x + " " + Outer.this.x); } } public static void main(String[] args) { new Outer().new Inner().show(30); } } What is the result?
Correct answer: A
Explanation
The parameter x shadows the Inner field, this.x refers to the Inner field (20), and Outer.this.x reaches the enclosing instance field (10). The syntax new Outer().new Inner() is valid for an inner class, so the code compiles.
Continue with 1z0-816: Java SE 11 Programmer II
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-816: Java SE 11 Programmer II, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Discussion
Explain your reasoning, not just the letterOther Oracle certifications
- 1z0-062: Oracle Database 12c Installation and Administration (opens in a new tab)
- 1z0-067: Upgrade Oracle9i10g11g OCA OR OCP to Oracle Database 12c OCP (opens in a new tab)
- 1z0-1105-22: Oracle Cloud Data Management 2022 Foundations Associate (opens in a new tab)
- 1z0-071: Oracle Datbase 12c SQL (opens in a new tab)
- 1z0-063: Oracle Database 12c Advanced Administration (opens in a new tab)
- 1z0-060: Upgrade to Oracle Database 12c (opens in a new tab)
- 1z0-821: Oracle Solaris 11 System Administration (opens in a new tab)
- 1z0-900: Java EE 7 Application Developer (opens in a new tab)
- 1z0-1094-23: Oracle Cloud Database 2023 Migration and Integration Professional (opens in a new tab)
- 1z0-632: PeopleSoft PeopleTools 8.5x Implementation Essentials (opens in a new tab)
- 1z0-082: Oracle Database Administration I (opens in a new tab)
- 1z0-1072-23: Oracle Cloud Infrastructure 2023 Architect Associate (opens in a new tab)
Reviews
Write a review★★★★★
Exam Practice is worth every penny. The mock exams are realistic, and the feedback helped me focus on key areas.
Amit SharmaVerified buyer
★★★★★
I highly recommend Exam Practice. The feedback after each test helped me improve significantly, and I passed my exams easily.
Oscar NyströmVerified buyer
★★★★★
This platform is a lifesaver. The practice questions and explanations are so detailed. It’s the best study tool I’ve ever used.
Hannah SmithVerified buyer
FAQ
Learn More: https://academy.oracle.com/en/resources-oracle-certifications.html
- Q1: What is the 1z0-816: Java SE 11 Programmer II exam?
- A: 1z0-816: Java SE 11 Programmer II is a Oracle certification exam. Judging by the questions in our bank, it concentrates on java, exception, catch and happen.
- Q2: What topics does the 1z0-816: Java SE 11 Programmer II exam cover?
- A: Questions in our 1z0-816: Java SE 11 Programmer II bank cluster around java, exception, catch and happen. Working through the full set is the quickest way to find which of these you are weakest on.
- Q3: How should I prepare for 1z0-816: Java SE 11 Programmer II?
- A: Work through the 1z0-816: Java SE 11 Programmer II practice questions here, checking your answer on each one, then sit the practice test to rehearse the exam under timed conditions before the real thing.
- Q4: Are these real 1z0-816: Java SE 11 Programmer II exam questions?
- A: They are drawn from officially released past questions and from community members who have sat 1z0-816: Java SE 11 Programmer II. Answers are verified and updated weekly.
- Q5: Where do I register for the 1z0-816: Java SE 11 Programmer II exam?
- A: Register through Oracle directly at https://academy.oracle.com/en/resources-oracle-certifications.html. Exampractice is not affiliated with Oracle and does not administer the exam.
- Q6: Is there a free 1z0-816: Java SE 11 Programmer II sample?
- A: Yes. Every 1z0-816: Java SE 11 Programmer II page shows a free sample of real questions. Upgrading opens the full bank and the practice test.
- Q7: What are Oracle Certification Exams?
- A: Oracle Certification Exams validate your expertise in using and managing Oracle’s vast array of software and hardware solutions, including databases, cloud infrastructure, enterprise applications, and more. These certifications demonstrate your proficiency in deploying, configuring, and optimizing Oracle technologies to meet business needs.
- Q8: Why should I pursue Oracle Certification?
- A: Oracle Certification enhances your professional credibility, showcasing your skills and knowledge in Oracle technologies. This can lead to better job opportunities, higher salaries, and career advancement in IT, database management, cloud computing, and enterprise application roles.
- Q9: What are the benefits of Oracle Certification?
- A: Benefits include recognition as a certified Oracle professional, improved job performance, access to exclusive resources, continuing education opportunities, and staying current with the latest Oracle technologies and best practices.
- Q10: Who should take Oracle Certification Exams?
- A: IT professionals, database administrators, developers, system administrators, and anyone involved in managing and implementing Oracle solutions should consider these certifications to validate their expertise and advance their careers.
- Q11: What types of Oracle Certification Exams are available?
- A: Oracle offers various certification paths, including:
- Q12: How do I prepare for Oracle Certification Exams?
- A: Preparation can include official Oracle University training courses, study guides, practice exams, online tutorials, and hands-on experience with Oracle products and solutions.
- Q13: Where can I take Oracle Certification Exams?
- A: Oracle Certification Exams can be taken online with remote proctoring or at authorized Pearson VUE testing centers worldwide, providing flexibility to fit your schedule and location.
- Q14: How do Oracle Certifications impact my career?
- A: Oracle Certifications significantly boost your career by demonstrating your expertise to employers, making you a more competitive candidate for advanced roles and promotions in IT, database management, cloud computing, and enterprise applications.
- Q15: Are there any prerequisites for Oracle Certification Exams?
- A: Some exams may have prerequisites, such as foundational knowledge or prior experience with Oracle products. Check the specific requirements for each certification path on the Oracle certification website.
- Q16: How often do I need to recertify for Oracle Certifications?
- A: Recertification requirements vary by certification. Some Oracle certifications do not require recertification, while others, especially those related to cloud technologies, may require periodic updates to ensure professionals stay current with the latest advancements.



