Loading…
Loading…
Ten exam-style questions on packages, wildcard and single-type imports, java.lang, Date naming conflicts, javac -d, the class path options, JAR files and the order of elements in a source file, with explanations.
Practice questions for the article Java Packages and Imports: Wildcards, Conflicts, Compiling and the Class Path.
The questions follow Java 21 rules, as on the 1Z0-830 exam, unless a question says otherwise. 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 3. Take the quizzes in this order, after reading each article.
Previous quiz: JDK, JVM, Class Structure and the main Method (OCP 21)
Next quiz: Constructors, Instance Initializers and Order of Initialization (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.