Which statement about a Java record is true?
Select an option, then click Submit answer.
- ○ It is implicitly final
- ○ It can extend any class
- ○ It allows mutable fields
- ○ It needs explicit accessors
Showing 1–10 of 10 questions
Which statement about a Java record is true?
Select an option, then click Submit answer.
Which two rules apply to a sealed class hierarchy? (Choose two.)
Select all that apply, then click Submit answer.
In a flexible constructor body, what is true of statements written before the explicit super(...) or this(...) call?
Select an option, then click Submit answer.
What does an unnamed variable declared with an underscore (_) represent in Java 25?
Select an option, then click Submit answer.
A class declares m(long) and m(Integer). Which rule decides the call m(5)?
Select an option, then click Submit answer.
When is an enum constructor executed?
Select an option, then click Submit answer.
Which two statements about interface methods are correct? (Choose two.)
Select all that apply, then click Submit answer.
What distinguishes a static nested class from an inner class?
Select an option, then click Submit answer.
Where can local variable type inference (var) be used?
Select an option, then click Submit answer.
An object loses its last reachable reference during a method call. What happens to it?
Select an option, then click Submit answer.
This page holds a free practice test for the Java SE 25 Developer Professional exam (1Z0-831), the Oracle exam that earns the Oracle Certified Professional: Java SE 25 Developer credential. The questions are written to Oracle's official 1Z0-831 topic list, weighted towards object-oriented principles, values and text handling, multithreading and I/O — the areas Oracle's blueprint emphasises most.
The free demo runs in the web test engine with no signup. The full practice test carries the complete question bank with an explanation for every answer.
Pick an answer for each question and check it straight away in study mode, reading the explanation whether you were right or wrong — most 1Z0-831 questions show a short program and ask what it prints or why it fails to compile, so the reasoning matters more than the answer. When your study scores are steady, switch to the timed mode to rehearse the real exam's 120-minute pace for 50 questions.
The largest area of the exam: object life cycle and garbage collection, classes and records, flexible constructor bodies, overloading, encapsulation and immutability, var and unnamed variables, inheritance with abstract and sealed types, polymorphism, interfaces and enums.
Primitives and wrappers, casting and promotion, the Math API, String and StringBuilder, text blocks, and the Date-Time API with periods, durations, instants and time zones.
Platform and virtual threads, executors, Callable and Future, locks and the concurrent API, scoped values, concurrent collections and parallel streams.
Console and file streams, object serialization, and the java.nio.file Path API for creating, traversing, reading and writing files.
Object and primitive streams, lambdas and functional interfaces, reduction, grouping, partitioning and the gather operations new in recent Java versions.
Modules and module import declarations, services, compact source files and instance main methods, jars, runtime images, and automatic and unnamed modules.
if/else, switch statements and expressions, loops, and break and continue statements.
try/catch/finally, try-with-resources, multi-catch blocks and custom exception types.
Arrays, List, Set, Map, Deque and sequenced collections, and adding, removing, updating, retrieving and sorting their elements.
Locales and resource bundles, and parsing and formatting messages, dates, times, numbers, currency and percentage values.
Yes — the demo practice test on this page is free and needs no signup. The full bank of practice questions, with explanations for every answer, is in the premium practice test.
The full practice test holds 80 questions written to Oracle's official 1Z0-831 topic list; the free demo shows a 10-question sample.
Yes. The real exam is 50 multiple-choice questions in 120 minutes with a 68% pass mark, and these practice questions follow the same style — short programs, output and compilation questions, and scenario items.