1Z0-830 tests two of the headline Java 21 features by name: virtual threads and pattern matching with the switch construct. Records, sealed types, text blocks and switch expressions are on the list too, but none of the Java 21 preview features (string templates, scoped values, structured concurrency, unnamed classes) appears in Oracle's exam topics. The exam has 50 multiple-choice questions in 120 minutes, and the passing score is 68%.
That is the short answer. The longer one matters because most study guides for the Java SE 21 Developer Professional exam either list every Java 21 change as if it were exam material, or skip the new features and teach the same syllabus as older Java exams. Neither matches what Oracle wrote. This post lays the two official lists side by side: the JDK 21 feature list from OpenJDK and the 1Z0-830 topic list from Oracle MyLearn, both read on 26 November 2026. Then it turns that into a study order.
Which Java 21 features does the 1Z0-830 exam name?
Two of the final JDK 21 features are written into the exam topics in plain words. The rest of the "modern Java" material on the list comes from earlier releases.
The 1Z0-830 exam topics on Oracle MyLearn have ten topic areas and 24 objective lines. Reading them line by line, these are the newer language and library features that are named:
- Virtual threads. The concurrency topic opens with "Create both platform and virtual threads." This is JDK 21's JEP 444, so it is the clearest Java 21 item on the exam.
- Pattern matching for switch. The object-oriented topic asks you to use "pattern matching with the instanceof operator and the switch construct." Pattern matching for switch became final in JDK 21 (JEP 441).
- Records. "Create classes and records" and "record classes" both appear, in two separate lines.
- Sealed types. Inheritance now includes "abstract and sealed types."
- Switch expressions. Program flow covers "switch statements and expressions."
- Text blocks. The text line says "including text blocks."
- Local variable type inference. In other words,
var, in the encapsulation and scope line.
So a candidate who learned Java years ago and never moved past classic switch and anonymous classes has real catching up to do. But the list is not a tour of every JEP either.
Which Java 21 features are not on the exam list?
Everything that was still a preview or incubator in JDK 21 is missing, and so are the JVM and security changes.
The JDK 21 project page on OpenJDK lists the JEPs that shipped in that release. Here is how they line up with the exam topics:
- On the list by name: JEP 444 Virtual Threads, JEP 441 Pattern Matching for switch.
- Not named, but inside a named line: JEP 440 Record Patterns and JEP 431 Sequenced Collections. The topic list does not use either term. Record patterns sit naturally inside the pattern matching line, since records are named in the same objective. The collections line names List, Set, Map and Deque, not the new SequencedCollection interfaces. Learn both well enough to read code that uses them, but do not build your plan around them.
- Not on the list: Generational ZGC (JEP 439), the Key Encapsulation Mechanism API (JEP 452), and the two platform notices (JEPs 449 and 451).
- Preview or incubator in JDK 21, not on the list: String Templates (430), Unnamed Patterns and Variables (443), Unnamed Classes and Instance Main Methods (445), Scoped Values (446), Structured Concurrency (453), the Foreign Function and Memory API (442, third preview) and the Vector API (448, incubator).
This is the most useful filter for your notes. If a course spends an hour on string templates or structured concurrency, that hour is not exam time. Preview features need a special compiler flag, and Oracle's topic list does not ask for any of them.
How are the ten 1Z0-830 topics spread out?
Oracle publishes no topic weights for 1Z0-830, so the only guide is how many objective lines each topic has. Here is the count from the MyLearn page:
- Handling Date, Time, Text, Numeric and Boolean Values: 3 lines
- Controlling Program Flow: 1 line
- Using Object-Oriented Concepts in Java: 7 lines
- Handling Exceptions: 1 line
- Working with Arrays and Collections: 1 line
- Working with Streams and Lambda expressions: 2 lines
- Packaging and Deploying Java Code: 2 lines
- Managing Concurrent Code Execution: 3 lines
- Using Java I/O API: 3 lines
- Implementing Localization: 1 line
The object-oriented topic holds 7 of the 24 lines, about 29% of the written list, and it is also where records, sealed types and pattern matching live. That does not prove it carries 29% of the questions, because Oracle does not say how lines map to questions. It does tell you where the density is.
Below the topics, Oracle adds three things candidates "are also expected to" know: the basics of the Java Logging API, five annotations (Override, FunctionalInterface, Deprecated, SuppressWarnings and SafeVarargs), and generics including wildcards. These are easy to skip because they are not numbered topics. Do not skip them.
What do the 1Z0-830 exam numbers mean on the day?
You need about 34 right answers out of 50, and you have a little under two and a half minutes for each question.
68% of 50 is 34. If every question counts the same (Oracle does not state that, so treat it as a guide), you can miss up to 16. 120 minutes over 50 questions is 2 minutes 24 seconds each. That sounds generous until you meet a 30-line code listing where the question is "what is the output?" Many 1Z0-830 questions read like small programs you must run in your head.
The money side is simple. Oracle's exam attempt purchases FAQ says one exam purchase is an attempt valued at US$245, and there is no free retake for a purchased exam. Each sitting uses a new attempt.
A pass earns the Oracle Certified Professional: Java SE 21 Developer credential. The exam is proctored online, check-in starts 30 minutes before your slot, and you see your result on screen at the end, with the detailed score report in Oracle CertView.
How should you study the Java 21 parts?
Put the new features early, while you have energy, and write code for every line. A six-week plan at eight to ten hours a week works for most developers who already use Java at work.
- Week 1: records and sealed types. Write a small sealed hierarchy with records as the leaves. Add compact constructors, override
equalsandtoString, and see what the compiler refuses. - Week 2: pattern matching and switch. Rewrite
instanceofchains as pattern matching, then as aswitchwith type patterns, guards (when) and record deconstruction. Learn which cases the compiler rejects as dominated or not exhaustive. - Week 3: concurrency. Start platform threads and virtual threads, run Runnable and Callable tasks through different executor services, and practise locks and the concurrent collections. Note what changes for virtual threads and what does not.
- Week 4: streams and collections. Grouping, partitioning, reduction, primitive streams and parallel streams. Sort and update List, Set, Map and Deque by hand.
- Week 5: the older core. Date-Time API with daylight saving time, String and StringBuilder, text blocks, exceptions with try-with-resources, I/O and NIO.2 Path, serialization, and localization with resource bundles.
- Week 6: modules and the extras. Module declarations, services, modular and non-modular jars, runtime images, unnamed and automatic modules. Then logging basics, the five annotations and generics with wildcards. Finish with one timed run of 50 questions in 120 minutes.
Keep the JDK 21 documentation open while you work. It is free, it is Oracle's own, and the API pages answer most "does this compile?" doubts faster than any forum.
A worked example: when does a pattern switch fail to compile?
Here is a small case written for this post, not taken from the exam. It shows the kind of reading 1Z0-830 expects: the code looks fine, and the question is whether the compiler agrees.
sealed interface Shape permits Circle, Square {}
record Circle(double r) implements Shape {}
record Square(double side) implements Shape {}
static String describe(Shape s) {
return switch (s) {
case Circle c when c.r() > 10 -> "big circle";
case Circle c -> "circle";
case Square(double side) -> "square " + side;
};
}
This compiles. The switch needs no default because Shape is sealed and both permitted types are covered: Circle by the plain type pattern and Square by a record pattern that pulls out side.
Now swap the first two cases, so case Circle c comes before case Circle c when c.r() > 10. The code no longer compiles. The unguarded Circle c already matches every circle, so the guarded case after it can never be reached, and the compiler reports it as dominated. Questions like this test three items from the topic list at once: records, sealed types and pattern matching with switch.
What mistakes cost points on 1Z0-830?
Most lost points come from studying the wrong Java, not too little Java. Watch for these:
- Studying preview features. String templates and structured concurrency get a lot of blog attention. They are not on the topic list.
- Treating virtual threads as a footnote. It is the first line of the concurrency topic. Know how to create them and how they behave with executors.
- Skipping the "also expected" block. Logging, the five annotations and generic wildcards are easy points that people forget because they are not numbered.
- Expecting JDBC. There is no database topic on the 1Z0-830 list. If your work is database-heavy, that side is covered by Oracle's database exams, such as the PL/SQL exam in this blog's 1Z0-149 certification path notes.
- Reading code too fast. Two minutes 24 seconds per question is enough only if you trace the code carefully once. Read the whole listing before you look at the answers.
Watch: Java 21 code traps
This DBExam video walks through five short Java 21 code traps for 1Z0-830. It fits well after week 2 of the plan, when pattern matching and records are fresh.
Where to go next
When you are ready to check your notes against the full outline, the 1Z0-830 syllabus and prep guide on DBExam puts the exam details and topics on one page, so you can tick off each line as you practise it.
Before booking, make sure you can write each feature from memory, not just recognise it. A record pattern you have typed ten times is one you will spot in a code listing under time pressure.
Still deciding which Java version to certify on? Our Blogger notes on whether to take the Java SE 17 OCP exam 1Z0-829 before it retires compare the older exam with the Java 21 one.
Frequently asked questions
1. Does 1Z0-830 test virtual threads?
Yes. The concurrency topic on the 1Z0-830 exam page starts with "Create both platform and virtual threads," so expect questions on creating and running them.
2. Are Java 21 preview features on the 1Z0-830 exam?
No. String templates, unnamed classes and instance main methods, scoped values, structured concurrency and the other JDK 21 preview or incubator features do not appear in Oracle's 1Z0-830 exam topics.
3. How many questions are on 1Z0-830 and what is the passing score?
1Z0-830 has 50 multiple-choice questions in 120 minutes, delivered proctored online, and the passing score is 68%. That is about 34 correct answers.
4. Is JDBC on the 1Z0-830 exam?
No. The ten 1Z0-830 topics cover the language, collections, streams, modules, concurrency, I/O and localization, but there is no JDBC or database topic.
5. How much does the 1Z0-830 exam cost?
Oracle values one exam attempt at US$245. Each sitting uses one attempt, and there is no free retake for a purchased exam.

