Courseiva
Java Platform Overview and PackaginghardMultiple SelectObjective-mapped

1Z0-829 Java Platform Overview and Packaging Practice Question

Which TWO are valid uses of the 'jmod' tool in Java 17?

⚠ Common exam trap

Test-takers frequently confuse the roles of 'jmod' (packaging) with 'jlink' (runtime image creation) and 'jdeps' (dependency analysis), leading candidates to incorrectly assign runtime image creation or dependency analysis to 'jmod'.

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

Listing the contents of a JMOD file.

The 'jmod' tool is primarily used for creating and inspecting JMOD files, which are a packaging format for Java modules that can include native libraries, configuration files, and other resources beyond what a modular JAR can hold. Option B is correct because 'jmod list' lists the contents of a JMOD file, showing its entries such as classes, native code, and legal notices. Option C is correct because 'jmod create' can create a JMOD file from a modular JAR and additional native libraries using the --libs option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Creating a custom runtime image.

    Why it's wrong here

    That is the function of jlink.

  • Listing the contents of a JMOD file.

    Why this is correct

    jmod list command lists contents of a JMOD file.

  • Creating a JMOD file from a modular jar and native libraries.

    Why this is correct

    jmod create can combine a jar with additional resources into a JMOD file.

  • Executing a JMOD file as an application.

    Why it's wrong here

    JMOD files are not directly executable.

  • Identifying module dependencies of a jar.

    Why it's wrong here

    That is the function of jdeps.

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 →

How Courseiva writes practice questions · Editorial policy

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.