Free · Java 25 · no sign-up

Java 25 practice test

Original Java SE 25 practice questions on language basics, classes, records, generics, collections, streams, exceptions, concurrency, pattern matching, modules, and Java 25 features. Answers cite the JLS, Java SE 25 API, or a JEP. Not an Oracle exam.

The free timed mock has 50 questions, a 90-minute limit and a 70% pass mark. This is an unofficial practice format, not the format of any certification exam.

Every question is original, written for Java SE 25 and linked to the section of the Java Language Specification, the Java SE 25 API documentation or the JEP it is based on.

  • Free, no account
  • Every answer cites its source
  • No paywall on the full mock
Mock questions50timed practice mock
Time limit90 minon the free timed mock
Passing score70%for this practice format
Free practice questions109with explanations

Topics

Language basics and types
12% of the mock
8 free
Classes, records, sealed types and enums
16% of the mock
12 free
Generics
10% of the mock
15 free
Collections and streams
14% of the mock
14 free
Exceptions
8% of the mock
9 free
Concurrency and virtual threads
10% of the mock
14 free
Pattern matching and switch
12% of the mock
13 free
Modules and imports
6% of the mock
12 free
Java 25 features
12% of the mock
12 free

Browse practice questions

Language basics and types (8)

Practice all 8 Language basics and types questions one at a time

Classes, records, sealed types and enums (12)

Practice all 12 Classes, records, sealed types and enums questions one at a time

Generics (15)

Practice all 15 Generics questions one at a time

Collections and streams (14)

Practice all 14 Collections and streams questions one at a time

Exceptions (9)

Practice all 9 Exceptions questions one at a time

Concurrency and virtual threads (14)

Practice all 14 Concurrency and virtual threads questions one at a time

Pattern matching and switch (13)

Practice all 13 Pattern matching and switch questions one at a time

Modules and imports (12)

Practice all 12 Modules and imports questions one at a time

Java 25 features (12)

Practice all 12 Java 25 features questions one at a time

Timed mock exam

The free mock draws 50 questions across the topics above (6/8/5/7/4/5/6/3/6), runs a 90-minute clock and scores you by topic. No account needed. Start the timed mock.

Topic weights: Unofficial practice blueprint (topic weights chosen by setupmycode exams, see tools/tech-pipeline/BLUEPRINTS.md). Written against Java SE 25 (JLS SE 25, Java SE 25 API, JDK 25 JEPs; preview features excluded). It does not mirror any Oracle exam; Oracle's current Java SE developer exam, 1Z0-830, covers Java 21.

Other free practice tests