1z0-809 Verified 2026 Edition

Java SE 8 Programmer II (OCP) Practice Test

1z0-809 earns the Oracle Certified Professional, Java SE 8 Programmer credential, which requires passing 1Z0-808 first. It suits experienced Java developers building on core language fundamentals. Questions in this practice test cover advanced class design, generics and collections, lambda expressions and the Stream API, and concurrency and JDBC.

906 Total Questions
4 Included Versions Get all versions for the price of one
English Edition
$90k–$140k Typical Salary An estimate of yearly pay in the United States for Java developers, backend developers and software engineers with professional-level Java skills.
All-In-One Bundle
$79.99
$75.99
  • Interactive Simulator & AI
  • Detailed Explanations
  • Study, Timed & Flashcard Mode
  • Lifetime Access & Updates

Instant lifetime access • Secure checkout

Why Study with PlanetCert?

The Latest Questions

Practice questions and exam topics aligned with the current exam objectives.

Detailed Explanations

Go beyond the answer. Master the material with comprehensive learning and professional explanations for every concept.

AI

AI-Powered Insights

Personalized preparation guidance that adapts to your performance and identifies weak spots automatically.

Exam Information

Official specifications published by Oracle

Exam Format

120 min
68
65%
Professional

Registration

Pearson VUE or online proctoring
English, Chinese Simplified (CHS) - Taiwan only

Validity

Certification does not expire, but Oracle recommends staying current with newer Java versions
No mandatory recertification required; Can upgrade to Java SE 11 by taking upgrade exam 1Z0-817; Can pursue newer Java certifications (Java SE 11, Java SE 17, etc.)

Skills this practice test covers

  • Design immutable and singleton classes, and override equals, hashCode and toString.
  • Pick Predicate, Function, Consumer, Supplier or a primitive functional interface for a lambda.
  • Build Stream pipelines with map, filter, flatMap and collect, and group results with Collectors.
  • Run tasks with an ExecutorService, and spot deadlock, livelock and race conditions.
  • Copy, move and walk files with the NIO.2 Files class, and use java.io readers and writers.
  • Query a database through JDBC, and load resource bundles for different locales.

Explore related topics

1z0-809 exam content

12 domains · 56 topics · 906 questions

Java Class Design

This domain revisits object-oriented design at a professional level. Candidates apply encapsulation, inheritance and polymorphism, override the methods of Object, and build singleton and immutable classes.

Skills tested

  • Choose between inheritance and composition for a design.
  • Override hashCode, equals and toString so that equal objects return the same hash code.
  • Create a singleton class and an immutable class.
  • Predict the order in which static initializer blocks and static variables run.

Official topics

  • Implement encapsulation
  • Implement inheritance including visibility modifiers and composition
  • Implement polymorphism
  • Override hashCode, equals, and toString methods from Object class
  • Create and use singleton classes and immutable classes
  • Develop code that uses static keyword on initialize blocks, variables, methods, and classes
Advanced Java Class Design

This domain covers class features beyond basic inheritance. Candidates use abstract classes, the final keyword, inner and anonymous classes, enums with constructors, interfaces with @Override, and lambda expressions.

Skills tested

  • Decide what final prevents on a variable, a method or a class.
  • Create static inner, local, nested and anonymous inner classes.
  • Give an enum a constructor, fields and methods.
  • Write a lambda expression for a functional interface.

Official topics

  • Develop code that uses abstract classes and methods
  • Develop code that uses the final keyword
  • Create inner classes including static inner class, local class, nested class, and anonymous inner class
  • Use enumerated types including methods, and constructors in an enum type
  • Develop code that declares, implements and/or extends interfaces and use the @Override annotation
  • Create and use Lambda expressions
Generics and Collections

This domain covers type-safe containers. Candidates write generic classes, use ArrayList, TreeSet, TreeMap and ArrayDeque, sort with Comparator and Comparable, and start to filter collections with streams and method references.

Skills tested

  • Write a generic class with a type parameter.
  • Choose ArrayList, TreeSet, TreeMap or ArrayDeque for a task.
  • Sort objects with Comparable and with a Comparator.
  • Filter a collection with a lambda, and use method references with streams.

Official topics

  • Create and use a generic class
  • Create and use ArrayList, TreeSet, TreeMap, and ArrayDeque objects
  • Use java.util.Comparator and java.lang.Comparable interfaces
  • Collections Streams and Filters
  • Iterate using forEach methods of Streams and List
  • Describe Stream interface and Stream pipeline
  • Filter a collection by using lambda expressions
  • Use method references with Streams
Lambda Built-in Functional Interfaces

This domain is about the interfaces in java.util.function. Candidates match each task to Predicate, Consumer, Function or Supplier, to their binary and primitive versions, or to UnaryOperator.

Skills tested

  • Choose Predicate, Consumer, Function or Supplier from what a lambda takes and returns.
  • Use primitive versions of functional interfaces to avoid boxing.
  • Use BiFunction, BiConsumer and BinaryOperator for operations on two arguments.

Official topics

  • Use the built-in interfaces included in the java.util.function package such as Predicate, Consumer, Function, and Supplier
  • Develop code that uses primitive versions of functional interfaces
  • Develop code that uses binary versions of functional interfaces
  • Develop code that uses the UnaryOperator interface
Java Stream API

This domain covers processing data with streams. Candidates extract data with map and peek, search with findFirst and anyMatch, handle Optional results, and sort, collect, group and flatten data.

Skills tested

  • Transform elements with map and its primitive versions, and inspect them with peek.
  • Search a stream with findFirst, findAny, anyMatch, allMatch and noneMatch.
  • Handle a result that may be empty with the Optional class.
  • Group and partition results with the Collectors class.
  • Flatten nested lists with flatMap.

Official topics

  • Develop code to extract data from an object using peek() and map() methods including primitive versions of the map() method
  • Search for data by using search methods of the Stream classes including findFirst, findAny, anyMatch, allMatch, noneMatch
  • Develop code that uses the Optional class
  • Develop code that uses Stream data methods and calculation methods
  • Sort a collection using Stream API
  • Save results to a collection using the collect method and group/partition data using the Collectors class
  • Use flatMap() methods in the Stream API
Exceptions and Assertions

This domain goes beyond basic try-catch. Candidates use multi-catch and finally, write try-with-resources statements, create custom exceptions and AutoCloseable resources, and test invariants with assertions.

Skills tested

  • Write a multi-catch block, and say when a finally block runs.
  • Close resources automatically with a try-with-resources statement.
  • Create a custom exception class and an AutoCloseable resource.
  • Test an invariant with assert, and know that assertions stay off until they are enabled.

Official topics

  • Use try-catch and throw statements
  • Use catch, multi-catch, and finally clauses
  • Use Autoclose resources with a try-with-resources statement
  • Create custom exceptions and Auto-closeable resources
  • Test invariants by using assertions
Use Java SE 8 Date/Time API

This domain covers dates and times in the java.time package. Candidates combine a date and a time in one object, measure intervals with Period and Duration, and handle time zones and daylight saving changes.

Skills tested

  • Create LocalDate, LocalTime, LocalDateTime and Instant objects.
  • Measure intervals with Period, Duration and TemporalUnit.
  • Format dates, and handle daylight saving changes across time zones.

Official topics

  • Create and manage date-based and time-based events including a combination of date and time into a single object using LocalDate, LocalTime, LocalDateTime, Instant, Period, and Duration
  • Work with dates and times across timezones and manage changes resulting from daylight savings including Format date and times values
  • Define and create and manage date-based and time-based events using Instant, Period, Duration, and TemporalUnit
Java I/O Fundamentals

This domain covers the classic java.io package. Candidates read and write console data, and use readers, writers and byte streams, including object streams for serialization.

Skills tested

  • Read input from the console and write output to it.
  • Choose between BufferedReader, FileReader, FileInputStream and PrintWriter for a task.
  • Write and read objects with ObjectOutputStream and ObjectInputStream.

Official topics

  • Read and write data from the console
  • Use BufferedReader, BufferedWriter, File, FileReader, FileWriter, FileInputStream, FileOutputStream, ObjectOutputStream, ObjectInputStream, and PrintWriter in the java.io package
Java File I/O (NIO.2)

This domain covers the newer file API in java.nio.file. Candidates work with paths, check, copy, move and delete files, read their metadata, and process files with streams.

Skills tested

  • Build, combine and compare file and directory paths with the Path interface.
  • Check, read, copy, move and delete files with the Files class.
  • Process directory trees and file lines with Files.walk and Files.lines.

Official topics

  • Use Path interface to operate on file and directory paths
  • Use Files class to check, read, delete, copy, move, manage metadata of a file or directory
  • Use Stream API with NIO.2
Java Concurrency

This domain covers running work in parallel without corrupting data. Candidates create worker threads, use an ExecutorService, recognize threading problems, and use synchronization, atomic classes, concurrent collections, Fork/Join and parallel streams.

Skills tested

  • Submit Runnable and Callable tasks to an ExecutorService.
  • Recognize deadlock, starvation, livelock and race conditions.
  • Protect shared data with synchronized blocks and atomic classes.
  • Use CyclicBarrier, CopyOnWriteArrayList and the Fork/Join Framework.
  • Reduce and merge results with parallel streams.

Official topics

  • Create worker threads using Runnable, Callable and use an ExecutorService to concurrently execute tasks
  • Identify potential threading problems among deadlock, starvation, livelock, and race conditions
  • Use synchronized keyword and java.util.concurrent.atomic package to control the order of thread execution
  • Use java.util.concurrent collections and classes including CyclicBarrier and CopyOnWriteArrayList
  • Use parallel Fork/Join Framework
  • Use parallel Streams including reduction, decomposition, merging processes, pipelines and performance
Building Database Applications with JDBC

This domain covers talking to a database from Java. Candidates describe the core JDBC interfaces, connect with DriverManager and a JDBC URL, run queries, read result sets and close every resource properly.

Skills tested

  • Describe Driver, Connection, Statement and ResultSet, and how a driver implements them.
  • Open a connection with DriverManager and a JDBC URL.
  • Iterate through a ResultSet, then close it with its statement and connection.

Official topics

  • Describe the interfaces that make up the core of the JDBC API including the Driver, Connection, Statement, and ResultSet interfaces and their relationship to provider implementations
  • Identify the components required to connect to a database using the DriverManager class including the JDBC URL
  • Submit queries and read results from the database including creating statements, returning result sets, iterating through the results, and properly closing result sets, statements, and connections
Localization

This domain covers adapting an application to languages and regions. Candidates read and set a Locale, create and read a Properties file, and load the right resource bundle for each locale.

Skills tested

  • Read and set the locale with the Locale object.
  • Create and read a Properties file.
  • Build a resource bundle for each locale and load the right one.

Official topics

  • Read and set the locale by using the Locale object
  • Create and read a Properties file
  • Build a resource bundle for each locale and load a resource bundle in an application
Practise these questions in study mode

Requirements

  • Oracle's path: earn Oracle Certified Associate by passing Java SE 8 Programmer I, then pass this exam.
  • Recommended: a year or two of Java development, including work with Java SE 8 features.
  • Recommended: advanced Java SE 8 training plus practical, hands-on experience, as Oracle's exam page advises.

About the 1z0-809 exam

1z0-809 checks whether an experienced Java developer can use the Java SE 8 APIs found in real applications. It is Oracle's Java SE 8 Programmer II exam and the step after Java SE 8 Programmer I. Its twelve domains add generics and collections, functional interfaces, the Stream API, the Date/Time API, file I/O with NIO.2, concurrency, JDBC and localization to class design. Together, the two exams earn Oracle Certified Professional, Java SE 8 Programmer.

Every explanation in the PlanetCert practice test follows the code to its result, for example the output of a Stream pipeline step by step, or the moment a try-with-resources statement closes its resource. Study Mode suits Java Concurrency and Java Stream API, where each question rewards a slow trace. Flashcard Mode helps with the built-in functional interfaces, from BiFunction to UnaryOperator. Brainy AI Assistant can show what a grouping collector returns for a sample list, or why a parallel stream can change the order of results.

How to earn the certification

Earns
Oracle Certified Professional, Java SE 8 ProgrammerProfessional

The certification does not expire.

Before
After

How to prepare for 1z0-809

  1. Pass the associate exam first

    Oracle's path puts Java SE 8 Programmer I before this exam. Treat its topics, such as access modifiers and exception basics, as the base that the 1z0-809 objectives build on.

  2. Write stream pipelines daily

    Build small pipelines with filter, map, flatMap, sorted and collect, then group and partition the results with Collectors. Predict each result before running the code.

  3. Break and fix concurrent code

    Start tasks with an ExecutorService, create a race condition on purpose, then fix it with synchronized or AtomicInteger. Add a CyclicBarrier and a parallel stream to see how results and their order change.

  4. Handle files, JDBC and bundles

    Walk a folder with Files.walk, copy and move files with the Files class, and read text with BufferedReader. Then query a local test database with JDBC and load a resource bundle for two locales.

  5. Time full runs at the end

    Work through the 1z0-809 practice test by domain in Study Mode, then take full runs in Timed Mode. Ask Brainy AI Assistant to rework any missed Stream API question with a different list of data.

    Start a timed 1z0-809run

Oracle recommends the Java SE 8 Programmer - Professional learning path on Oracle MyLearn for this exam.

Who 1z0-809 is for

  • Developers who passed Java SE 8 Programmer I and want the professional Java SE 8 credential.
  • Backend and application developers who maintain Java 8 code built on streams and lambdas.
  • Engineers who write multithreaded or database-backed Java applications.
  • Developers who want proof of Java skills beyond core syntax.

Typical job titles: Java developer · Software engineer · Backend developer · Application developer · Java consultant

Your Complete Exam Solution

Best-In-Class Practice Tests

Exam-style questions that match the format and difficulty of the real exam, updated regularly. Original material — not recycled dumps.

Topical Breakdown

Study by domain, pinpoint weak areas, and focus your time where it matters most. Every topic mapped to the official syllabus.

Flashcard Mode

Rapid-fire review to reinforce key concepts. Flip through questions and answers at your own pace before exam day.

See How You Compare Against Yourself

✕
✕
✕

Other Exam Prep

  • Outdated question dumpsRecycled, often inaccurate material
  • No explanationsMemorize answers without understanding
  • Static PDF filesNo interactive practice or feedback
  • Subscription feesRecurring charges, access expires
✓
✓
✓

PlanetCert

  • Verified, current questionsUpdated weekly to match live exam objectives
  • Expert-written rationalesUnderstand every concept, not just the answer
  • Session tracking & exam progressTrack every attempt, see your growth over time
  • Lifetime access, one pricePay once — updates included forever
CERTIFIED1z0-809

Study Naturally, Study Responsibly

Practice with exam-style questions and detailed explanations until you're ready.

Try Free Demo
Secure Checkout Lifetime Access