100+ Free Java SE 8 Programmer II Practice Questions
Pass your Oracle Certified Professional, Java SE 8 Programmer II (Exam 1Z0-809) exam on the first try — instant access, no signup required.
What does the following print? Stream.of("a","b","c") .peek(System.out::print) .map(String::toUpperCase) .findFirst();
Explore More Oracle Certifications
Continue into nearby exams from the same family. Each card keeps practice questions, study guides, flashcards, videos, and articles in one place.
More From This Family
Videos and articles for deeper review.
Key Facts: Java SE 8 Programmer II Exam
$245
Exam Fee (USD)
Oracle
65%
Passing Score
Oracle
150 min
Time Limit
Oracle
~68
Question Count
Oracle
No expiry
Credential Validity
Oracle
1Z0-808
Required co-credential for OCP
Oracle
Oracle lists Exam 1Z0-809 (Java SE 8 Programmer II) as a professional-level certification delivered through Pearson VUE, with a 65% passing score, about 68 multiple-choice and multiple-select questions, a 150-minute time limit, and a $245 USD fee; the credential does not expire. The blueprint spans Java class design, advanced class design, generics and collections, lambda built-in functional interfaces, the Stream API, exceptions and assertions, the Date/Time API, I/O fundamentals, NIO.2 file I/O, concurrency, JDBC, and localization. The OCA 1Z0-808 credential is required to be awarded the full OCP designation.
Sample Java SE 8 Programmer II Practice Questions
Try these sample questions to test your Java SE 8 Programmer II exam readiness. Each question includes a detailed explanation. Start the interactive quiz above for the full 100+ question experience with AI tutoring.
1Given: class Animal { String speak() { return "..."; } } class Dog extends Animal { @Override String speak() { return "Woof"; } } Animal a = new Dog(); String s = a.speak(); What is the value of s, and why?
2Which set of characteristics correctly describes a properly implemented immutable class in Java?
3Given a thread-safe singleton implemented with an enum: public enum Config { INSTANCE; private int v = 1; } Which statement about this pattern is TRUE?
4Given: class Base { Base() { init(); } void init() { System.out.print("B"); } } class Sub extends Base { int x = 5; void init() { System.out.print(x); } } What does new Sub() print?
5An overriding method in a subclass may legally do which of the following relative to the method it overrides?
6Given: class A { static String who() { return "A"; } } class B extends A { static String who() { return "B"; } } A ref = new B(); String s = ref.who(); What is s?
7What is the primary purpose of overriding both equals(Object) and hashCode() together when a class is used as a HashMap key?
8Given two interfaces with the SAME default method signature: interface X { default String id() { return "X"; } } interface Y { default String id() { return "Y"; } } class C implements X, Y { } What happens?
9Which statement about an abstract class in Java SE 8 is TRUE?
10Given: enum Planet { EARTH(9.8), MARS(3.7); private final double g; Planet(double g){this.g=g;} double gravity(){return g;} } Which statement is TRUE?
About the Java SE 8 Programmer II Exam
Exam 1Z0-809 leads to the Oracle Certified Professional, Java SE 8 Programmer II credential, the advanced second-level Java 8 certification that follows the OCA 1Z0-808 associate exam. It validates deep, applied knowledge of the Java SE 8 language and core APIs: object-oriented and advanced class design, generics and collections, lambda expressions and built-in functional interfaces, the Stream API, exceptions and assertions, the java.time Date/Time API, I/O and NIO.2 file handling, concurrency, JDBC, and localization. Questions are heavily code-based, asking candidates to determine compilation results, runtime output, and the correct API to apply. The professional exam is notably harder than 1Z0-808, emphasizing functional programming, streams, and concurrency.
Questions
68 scored questions
Time Limit
150 minutes
Passing Score
65%
Exam Fee
$245 (Oracle)
Java SE 8 Programmer II Exam Content Outline
Java Class Design
Apply encapsulation, inheritance, and polymorphism; understand virtual method invocation and method hiding for statics; implement singletons (including the enum singleton), immutable classes with defensive copies, and correct equals/hashCode contracts for hash-based collections.
Advanced Java Class Design
Use abstract classes and interfaces (including default and static methods and the diamond-conflict resolution rule), enums with fields and constructors, nested and inner classes with effectively-final capture, and single-abstract-method functional interfaces as lambda targets.
Generics and Collections
Create type-safe collections, apply bounded type parameters and upper/lower wildcards following PECS, leverage generic methods, sort with Comparator chains and Comparable, and use Map, List, Set, Deque, NavigableMap, and method references.
Lambda Built-in Functional Interfaces
Select and compose the built-in interfaces Predicate, Supplier, Consumer, Function, UnaryOperator, BinaryOperator, BiFunction, and their primitive specializations, and chain behavior with andThen, compose, and negate to avoid autoboxing where possible.
Java Stream API
Build lazy pipelines with filter, map, flatMap, peek, sorted, and limit; terminate with reduce, collect, count, findFirst, and findAny; use Optional safely; and apply Collectors such as groupingBy, partitioningBy, toMap, and joining, plus parallel-stream correctness rules.
Exceptions and Assertions
Use try-with-resources (reverse-order closing and suppressed exceptions), multi-catch with its implicitly-final parameter, custom checked and unchecked exceptions, finally control-flow precedence, and assertions enabled with -ea for internal invariants.
Use Java SE 8 Date/Time API
Work with the immutable java.time types LocalDate, LocalTime, LocalDateTime, and ZonedDateTime; distinguish date-based Period from time-based Duration; compute signed spans with ChronoUnit; and format and parse with DateTimeFormatter.
Java I/O Fundamentals
Read and write data with byte streams and character readers/writers, apply buffering for performance, use System.console safely (it can return null), and serialize objects with Serializable while handling transient and static fields.
Java File I/O (NIO.2)
Use the Path and Files APIs to resolve, relativize, normalize, and inspect paths; copy and move files with StandardCopyOption; and lazily stream the file tree and content with Files.walk, Files.find, and Files.lines inside try-with-resources.
Java Concurrency
Start threads correctly with start(); use ExecutorService, Callable, and Future; apply concurrent collections (ConcurrentHashMap, CopyOnWriteArrayList) and atomics; coordinate with CyclicBarrier and CountDownLatch; parallelize with Fork/Join; and reason about volatile visibility and deadlock.
Building Database Applications with JDBC
Obtain connections through auto-registered JDBC 4.0 drivers, run parameterized PreparedStatements to block SQL injection, advance and read ResultSet cursors correctly, and close Connection, Statement, and ResultSet with try-with-resources.
Localization
Build locale-aware applications with Locale and ResourceBundle (including the most-specific-to-base fallback chain) and format numbers and currency per locale with NumberFormat.
How to Pass the Java SE 8 Programmer II Exam
What You Need to Know
- Passing score: 65%
- Exam length: 68 questions
- Time limit: 150 minutes
- Exam fee: $245
Keys to Passing
- Complete 500+ practice questions
- Score 80%+ consistently before scheduling
- Focus on highest-weighted sections
- Use our AI tutor for tough concepts
Java SE 8 Programmer II Study Tips from Top Performers
Frequently Asked Questions
What are the current exam facts for 1Z0-809?
Oracle lists Exam 1Z0-809 as a professional-level certification with a 65% passing score and a $245 USD fee, delivered through Pearson VUE. It presents about 68 multiple-choice and multiple-select questions in 150 minutes, and the credential does not expire.
How is 1Z0-809 different from 1Z0-808?
1Z0-808 is the OCA associate exam covering Java fundamentals, while 1Z0-809 is the professional second-level exam. The Programmer II exam is considerably harder, going deep into lambdas, the Stream API, generics, NIO.2, and concurrency, with intricate code-output and compile questions.
Do I need to pass 1Z0-808 before 1Z0-809?
You can sit 1Z0-809 on its own, but to be awarded the Oracle Certified Professional, Java SE 8 Programmer credential you must also hold the OCA Java SE 8 (1Z0-808) certification. Many candidates take 1Z0-808 first.
Which topics carry the most weight on 1Z0-809?
Generics and Collections, the Stream API, and Concurrency together make up a large share of the exam and are where most candidates lose points. Expect many questions on wildcards and PECS, stream pipelines and collectors, and the Executor and Fork/Join frameworks.
Does the OCP Java SE 8 certification expire?
No. Once you earn the Oracle Certified Professional, Java SE 8 Programmer credential it does not expire. Oracle's role-based renewal policies apply only to certain other certifications, not this one.
What is the best way to prepare for 1Z0-809?
Write and run real Java 8 code rather than only reading. Drill stream pipelines, generics wildcards, java.time immutability, NIO.2 Path resolve/relativize/normalize, and multithreaded examples until you can predict compilation and output reliably.