Loading…
Loading…
Ten exam-style questions on the JDK tools, bytecode, comments, classes and source files, legal main() declarations, command-line arguments and single-file launching, with explanations.
Practice questions for the article Java Building Blocks: JDK, JVM, Class Structure and the main Method.
The questions follow Java 21 rules, as on the 1Z0-830 exam, unless a question says otherwise. Missing imports are assumed to exist. When a question asks for more than one answer, it says how many. Aim for at least 8 out of 10 before moving on.
Quiz path: step 2. Take the quizzes in this order, after reading each article.
Previous quiz: OCP Java 21 Assessment Test (1Z0-830 Diagnostic)
Next quiz: Packages, Imports, Compiling and the Class Path (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.