Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Exam preparation

Oracle 1Z0-809 Exam Guide for the Java

1Z0-809 is the code of the Oracle Java SE 8 Programmer II exam, part of the Oracle Java certification. You get 85 questions and 150 minutes. It is scored across 12 exam topics. 15 free practice questions with explanations are online, and each exam topic below links to the ones written for it.

1Z0-809 Exam Details

Vendor
Oracle
Exam Code
1Z0-809
Real Exam Questions
85
Time Limit
150 min
Free Practice Questions
15
Full Question Set
208
Exam Topics
12
Last Updated
December 2, 2026
Exam Name
Java SE 8 Programmer II
Question Types
MCQs
Certification
Oracle Java
Difficulty Level
Professional-level certification
Technology
Java SE 8
Job Role
Java developers and Software engineers

1Z0-809 Exam Topics and Weights

Java Class Design

What this topic covers

Build classes with encapsulation, inheritance, and polymorphism, and apply static members, immutability, and singleton patterns. Override Object methods consistently so identity works correctly in hash-based collections.

Why do immutable classes need private final fields and defensive copies?

Private final fields cannot be reassigned from outside the class, so the object's state stays fixed after construction. A final class also cannot be subclassed to add mutable behavior. When a constructor receives a mutable collection or date, copy it first, so later changes by the caller do not reach the object.

2 free 1Z0-809 practice questions on Java Class Design

Advanced Java Class Design

What this topic covers

Use abstract and final classes, nested and anonymous classes, enums, and interfaces to shape Java types. Create lambda expressions and apply @Override when implementing or extending behavior.

What makes an anonymous inner class different from a lambda expression?

An anonymous inner class can declare its own fields and implement an interface with several methods, while a lambda implements one abstract method. In an anonymous class, this means the anonymous instance. In a lambda, this means the enclosing instance.

1 free 1Z0-809 practice question on Advanced Java Class Design

Generics and Collections

What this topic covers

Create generic classes and work with collections such as ArrayList, TreeSet, TreeMap, and ArrayDeque. Use comparators, streams, filters, and method references to order and process data.

Why can a TreeSet silently drop an element that looks new?

TreeSet decides duplicates by its comparator, or by compareTo when no comparator is given, not by equals. If the comparison returns zero, the new element counts as a duplicate and is not added. So a comparator that checks only one field can merge objects that equals treats as different.

1 free 1Z0-809 practice question on Generics and Collections

Lambda Built-In Functional Interfaces

What this topic covers

Choose Predicate, Consumer, Function, and Supplier to represent common lambda tasks. Apply primitive and binary interfaces, and use UnaryOperator when input and result types match.

What makes UnaryOperator different from Function?

UnaryOperator is a Function whose input and result have the same type, so it extends Function. Use it when a method takes one value and returns a value of the same type, such as String::toUpperCase. Its apply method is inherited from Function.

1 free 1Z0-809 practice question on Lambda Built-in Functional Interfaces

Java Stream API

What this topic covers

Transform, search, sort, and aggregate stream data with map, flatMap, and Stream methods. Use Optional for search results, and collect or group data with Collectors.

When should you choose findAny instead of findFirst?

Choose findAny when any matching element is acceptable, such as on a parallel stream where it can return sooner. findFirst always returns the first match in encounter order. Both return an Optional, and an empty result gives an empty Optional instead of null.

1 free 1Z0-809 practice question on Java Stream API

Exceptions and Assertions

What this topic covers

Handle failures with try-catch, multi-catch, finally, and throw, and define custom exceptions and closeable resources. Use try-with-resources to close streams reliably and assertions to check invariants.

Why should try-with-resources be used instead of a finally block for closing?

Try-with-resources closes each declared resource automatically when the block exits, even if an exception is thrown. Resources close in reverse order of declaration. If close also throws, that exception is added as suppressed to the primary one.

2 free 1Z0-809 practice questions on Exceptions and Assertions

Use Java SE 8 Date/Time API

What this topic covers

Represent dates, times, durations, and periods with the Java date/time types. Apply regional time-zone rules, including daylight-saving changes, and format date and time values.

What is the difference between Period and Duration?

Period holds a date-based amount such as years, months and days, while Duration holds a time-based amount in seconds and nanoseconds. Period.between with two LocalDate values returns years, months and days. Duration.between with two LocalTime values returns hours, minutes and seconds.

1 free 1Z0-809 practice question on Use Java SE 8 Date/Time API

Java I/O Fundamentals

What this topic covers

Read and write console and file data with java.io readers, writers, and streams. Use buffered file access and specify a Charset such as UTF-8 to control text encoding.

What does a BufferedReader add to a FileReader?

BufferedReader wraps a Reader and keeps a buffer of characters, so most calls to read do not touch the file. It adds readLine, which returns one line or null at end of input. Pair it with FileReader to read a text file efficiently.

1 free 1Z0-809 practice question on Java I/O Fundamentals

Java File I/O (NIO.2)

What this topic covers

Use Path and Files to inspect, read, copy, move, and delete files or directories. Process file content with streams, including lazily consumed lines from Files.lines.

Which Files methods check whether a path exists and whether it is a regular file?

Files.exists(path) returns true when the path is present, and Files.isRegularFile(path) checks that it is a regular file rather than a directory. Files.lines(path) returns a lazily consumed Stream of lines. Files.move(source, target) relocates a path and accepts optional copy options.

1 free 1Z0-809 practice question on Java File I/O (NIO.2)

Java Concurrency

What this topic covers

Run tasks with Runnable, Callable, and ExecutorService, and control shared updates with synchronization or atomic classes such as AtomicLong. Recognize thread hazards and use concurrent collections, Fork/Join, and parallel streams.

Why does AtomicLong.incrementAndGet avoid lost updates without locking?

incrementAndGet performs the read, add and write as one atomic operation, so concurrent threads never lose an increment. The task does not need to be serialized as a whole. Use synchronized only when several fields must change together.

2 free 1Z0-809 practice questions on Java Concurrency

Localization

What this topic covers

Set locales and use Properties files and ResourceBundle to supply localized text. Understand bundle lookup from language and country through language-only and base resources.

1 free 1Z0-809 practice question on Localization

Related Oracle Exams

Continue to Free 1Z0-809 Exam Questions