About Question enthuware.ocpjp.v21.2.3445 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
silvia001
Posts: 1
Joined: Wed Jun 03, 2026 11:39 pm
Contact:

About Question enthuware.ocpjp.v21.2.3445 :

Post by silvia001 »

Hello,

Which clause(s) are used by a module definition that uses a service?

Could you please explain why we do not need exports this service in the module definition?

Thank you,
Silvia.

admin
Site Admin
Posts: 10464
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v21.2.3445 :

Post by admin »

The problem statement is asking about the module that "uses" a service. The module that uses a service doesn't export the service that is why it doesn't need the exports directive. It needs only the requires and uses directives.

The question includes a detailed explanation and also provides an example. Please go through it.

Post Reply