1Z0-829 Java Platform Overview and Packaging Practice Question
Which command creates a custom runtime image containing only the modules needed by an application, reducing the size of the JRE?
⚠ Common exam trap
Candidates often confuse `jlink` with `jmod` or `jar`, assuming any packaging tool can reduce the JRE, but only `jlink` performs module-aware linking to create a minimal runtime image.
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
✓
jlink
The `jlink` tool is specifically designed to create a custom runtime image that contains only the modules required by a given application, along with their transitive dependencies. This reduces the JRE size by eliminating unused modules, which is a key feature of Java's module system (Project Jigsaw). Option C is correct because `jlink` is the only command among the choices that performs this modular runtime image assembly.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
jmod
Why it's wrong here
jmod is for creating JMOD files, not runtime images.
- ✗
jar
Why it's wrong here
jar is for archiving Java classes.
- ✓
jlink
Why this is correct
jlink links modules and creates a custom runtime image.
- ✗
jdeps
Why it's wrong here
jdeps is for dependency analysis, not runtime image creation.
Go deeper
Related to this question
About these practice questions
One of 513 original 1Z0-829 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.