About Question enthuware.ocpjp.v11.2.3443 :

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

Moderator: admin

Post Reply
Thetri_enth
Posts: 6
Joined: Tue May 03, 2022 7:50 am
Contact:

About Question enthuware.ocpjp.v11.2.3443 :

Post by Thetri_enth »

This question is very poorly phrased and should be altered.

It asks:
Which of the following is a valid module-info for a service user module that uses an Order service defined in OrderServiceAPI module and implemented by OrderServiceProvider module?
But then claims the third answer is incorrect, while saying:
The 'requires OrderServiceProvider;' is technically valid but logically incorrect. As explained in option 2, the module that uses a service should not even be aware of the module that provides the service.
If the question asks for a valid option, you can't discard an option if it is valid but illogical.

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

Re: About Question enthuware.ocpjp.v11.2.3443 :

Post by admin »

You are right.
Should be fixed.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

powerofviva
Posts: 8
Joined: Tue Sep 19, 2023 12:11 pm
Contact:

Re: About Question enthuware.ocpjp.v11.2.3443 :

Post by powerofviva »

But you still did not fix it right?
it should have 2 correct answers.

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

Re: About Question enthuware.ocpjp.v11.2.3443 :

Post by admin »

I see that it has been fixed in the latest version of the question bank for OCP 17 but the change was not propagated to OCP 11. Sorry about that. It has been done now.
If you like our products and services, please help us by posting your review here.

Badem48
Posts: 26
Joined: Thu Aug 24, 2023 4:33 pm
Contact:

Re: About Question enthuware.ocpjp.v11.2.3443 :

Post by Badem48 »

Hi,

There is nothing with the question but I think I am confused about the concept.
From the Boyarsky and Selikoff book I know that 'uses' keyword is for Service Locator but here it is used for Consumer. How and why?

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

Re: About Question enthuware.ocpjp.v11.2.3443 :

Post by admin »

The problem statement is talking about the module info of a "service user" i.e. user of a service named Order defined in OrderServiceAPI. So, I am not sure where service locator is coming into picture. Although, there is a service locator when applying the Service Locator pattern, it is not always required or even used. There is no rule saying 'uses' keyword is for Service Locator!
You may want to confirm from the author of the book about what they mean.

The 'uses' clause is used by a module to convey that it uses a service. That service is represented by an interface, which is what is mentioned in the 'uses' clause. That's it. Whether you use a service locator or not is entirely up to you.
If you like our products and services, please help us by posting your review here.

Badem48
Posts: 26
Joined: Thu Aug 24, 2023 4:33 pm
Contact:

Re: About Question enthuware.ocpjp.v11.2.3443 :

Post by Badem48 »

Thank for the answer.

Post Reply

Who is online

Users browsing this forum: No registered users and 74 guests