Loading…
Loading…
Ten exam-style questions on the Java 22 to 25 features tested by 1Z0-831: unnamed variables and patterns, flexible constructor bodies, module imports, compact source files and instance main, stream gatherers and scoped values, with explanations.
Practice questions for the article Java 22 to 25: What's New After the OCP 21 Exam (1Z0-831).
These questions use Java 25 rules. Every code answer was compiled with javac --release 25 and run on JDK 25. Aim for at least 8 out of 10.
Quiz path: step 106. Take the quizzes in this order, after reading each article.
Previous quiz: Chapter 14 Review: I/O (OCP 21)
Next quiz: Final Review (OCP 21)
10 questions · pass at 68%
Check your understanding; you see the answers and explanations after submitting.
Discussion
Sign in to ask a question or share what you learned.