nerdexam
Oracle

1Z0-819 · Question #45

1Z0-819 Question #45: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-819 to reveal the answer and full explanation for question #45. The question stem and answer options stay visible for context.

Question

Examine these module declarations: module ServiceAPI { exports com.example.api; } module ServiceProvider { requires ServiceAPI; provides com.example.api with com.myimp1.imp1; } module Consumer { requires ServiceAPI; uses com.example.api; } Which two statements are correct? (Choose two.)

Options

  • AThe ServiceProvider module is the only module that, at run time, can provide the com.example.API API.
  • BThe ServiceAPI is the only module that, at run time, can provide com.example.API, makes it easy to install multiple provider modules.
  • CThe Consumer module should require the ServiceProvider module.
  • DThe ServiceProvider module should export the com.mypimpl.impl package.
  • EThe ServiceProvider module does not know the identity of a module (such as Consumer) that uses the com.example.API API.

Unlock 1Z0-819 to see the answer

You've previewed enough free 1Z0-819 questions. Unlock 1Z0-819 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 1Z0-819 Practice