Courseiva
Question 49 of 513
Controlling Program FlowmediumMatchingObjective-mapped

1Z0-829 Controlling Program Flow Practice Question

Match each Java module directive to its description.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Makes a package accessible to other modules

Specifies a dependency on another module

Allows reflective access to a package at runtime

Declares a service implementation

Specifies a service interface consumed by the module

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

requires: Specifies a dependency on another module.

Correct matches: requires specifies dependencies, exports grants compile-time access, opens enables reflective access, provides declares service implementations. Common confusion is between exports and opens due to their related but distinct roles.

Answer analysis

Option-by-option breakdown

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

  • requires: Specifies a dependency on another module.

    Why this is correct

    The requires directive declares that the current module depends on another module.

  • exports: Makes a package accessible to other modules.

    Why this is correct

    The exports directive makes a package accessible to all or specified modules at compile time.

  • opens: Allows reflective access to a package.

    Why this is correct

    The opens directive allows reflective access to a package's types and members at runtime.

  • provides: Declares that the module provides an implementation of a service.

    Why this is correct

    The provides directive declares that the module provides an implementation of a service interface.

  • exports: Allows reflective access to a package.

    Why it's wrong here

    Incorrect — exports provides compile-time access, not reflective access; that is the function of opens.

  • opens: Makes a package accessible to other modules.

    Why it's wrong here

    Incorrect — opens provides reflective access, not compile-time accessibility; that is the function of exports.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.