1Z0-829 Java Platform Overview and Packaging Practice Question
Network Topology
A developer runs the command above on a JAR file. Which statement accurately describes the module myapp?
⚠ Common exam trap
Oracle often tests the distinction between `exports` (compile-time access) and `opens` (reflective access), and the trap here is that candidates confuse a qualified export with an `opens` directive, or assume `exports` without a qualifier means all modules, when the `to` clause specifies a limited set.
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
✓
The module exports com.myapp.internal to the module myapp.tests only.
The command `java --describe-module myapp` outputs the module descriptor, which includes `exports com.myapp.internal to myapp.tests`. This indicates that the module `myapp` exports the package `com.myapp.internal` specifically to the module `myapp.tests` only, not to all modules. The `exports ... to` syntax restricts access to a qualified list of modules.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The module opens com.myapp.internal for deep reflection to all modules.
Why it's wrong here
The command shows 'exports ... to', not 'opens'. Deep reflection requires the opens directive.
- ✗
The module provides a service implementation.
Why it's wrong here
No 'provides' directive is present in the module descriptor.
- ✓
The module exports com.myapp.internal to the module myapp.tests only.
Why this is correct
The qualified exports directive restricts access to the specified module.
- ✗
The module requires java.base explicitly; it is not mandated.
Why it's wrong here
java.base is always implicitly required and mandated; it does not need to be declared.
Go deeper
Related to this question
About these practice questions
This 1Z0-829 question is part of Courseiva's 513-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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.