1Z0-829 Java Platform Overview and Packaging Practice Question
Which TWO statements about Java module types are true?
⚠ Common exam trap
It's easy for candidates to confuse the 'reads all other modules' capability of automatic modules with the ability to access all packages of those modules, when in fact only exported packages are accessible.
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
✓
An automatic module exports all its packages.
The Java module system automatically exports all packages of an automatic module, making them accessible to other modules without explicit export declarations. This is a key characteristic of automatic modules, which are created from JAR files placed on the module path without a module-info.java file.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
An automatic module exports all its packages.
Why this is correct
Automatic modules export every package in the JAR.
- ✗
An automatic module can access all packages of named modules without explicit requires.
Why it's wrong here
Automatic modules can only access exported packages of named modules.
- ✗
The unnamed module can read only the java.base module.
Why it's wrong here
The unnamed module can read all named modules on the module path.
- ✓
A named module requires a module-info.java file at compile time.
Why this is correct
Named modules must have a module declaration.
- ✗
The unnamed module is a named module.
Why it's wrong here
The unnamed module is not a named module; it's a special module for the classpath.
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.