Courseiva
Java Platform Overview and PackagingmediumMultiple SelectObjective-mapped

1Z0-829 Java Platform Overview and Packaging Practice Question

Which TWO statements about module descriptors are true?

⚠ Common exam trap

Candidates often confuse the `provides` and `uses` keywords (service provider vs. service consumer) and mistaking the `export` keyword for the correct `exports` keyword, which is a common syntax error in module descriptors.

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 module descriptor can use the opens keyword to enable deep reflection on specific packages.

The `opens` keyword in a module descriptor (module-info.java) allows deep reflection (access to private members) on specific packages at runtime, which is necessary for frameworks like Hibernate or JPA that rely on reflection. Option E is correct because the `transitive` keyword is used only within `requires` directives to indicate that any module that requires the current module also implicitly requires the specified 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 module descriptor can use the provides keyword to declare that it uses a service.

    Why it's wrong here

    provides declares an implementation; uses declares a service dependency.

  • A module descriptor can use the opens keyword to enable deep reflection on specific packages.

    Why this is correct

    opens grants reflective access to all types in the package.

  • A module descriptor must require the java.base module explicitly.

    Why it's wrong here

    java.base is implicitly required; explicit is optional.

  • A module descriptor can specify which packages are exported with the export keyword.

    Why it's wrong here

    The correct keyword is 'exports', not 'export'.

  • A module descriptor can use the transitive keyword only with requires directives.

    Why this is correct

    transitive is applied to requires to propagate readability.

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.