1Z0-829 Java Platform Overview and Packaging Practice Question
Which TWO statements are true about the Java module system (JPMS) as of Java 17?
⚠ Common exam trap
Many candidates confuse the classpath with the module path; candidates often think JARs on the classpath become automatic modules, but automatic modules only arise from JARs on the module path that lack a module-info.class.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
A named module is defined by a module-info.class file placed in the root of the module.
A named module in JPMS is defined by a module-info.class file (compiled from module-info.java) placed in the root directory of the module. This file declares the module's name, dependencies, and exported packages, making it a fundamental requirement for a named module.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
A named module is defined by a module-info.class file placed in the root of the module.
Why this is correct
Named modules have a module descriptor (module-info.java compiled to module-info.class).
- ✗
An automatic module can contain a module-info.class file.
Why it's wrong here
If a jar has module-info.class, it is a named module, not automatic.
- ✗
A jar file placed on the classpath that lacks module-info.class becomes an automatic module.
Why it's wrong here
A jar on the classpath becomes part of the unnamed module; for automatic module, jar must be on module path.
- ✗
A named module can read an unnamed module by default.
Why it's wrong here
Named modules cannot access unnamed modules unless explicitly allowed via --add-reads or other flags.
- ✓
An unnamed module is created when code is placed on the classpath.
Why this is correct
The classpath forms the unnamed module.
Go deeper
Related to this question
About these practice questions
Courseiva writes every 1Z0-829 question from scratch — 513 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 1Z0-829 practice question is part of Courseiva's free Oracle certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 1Z0-829 exam.