Edmund Yong wrote:Chapter 6, Page 342, Question 14 - There are 3 packages mentioned: "magic.wand", "magic.portion" and "magic.until". It says to give each module the same name as the package. Therefore, the reference to the module "magic.helper" is incorrect.
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Edmund Yong wrote:Appendix B, Page 677, answer to Chapter 6 question 15 - The sentence "The service provider must have a uses directive, but that is on the service provider interface". This is incorrect as it is the service locator that must have the uses directive. Or maybe the sentence is trying to say that the service provider must have the requires directive on the service provider interface.
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Jeanne Boyarsky wrote:
Edmund Yong wrote:Chapter 6, Page 342, Question 14 - There are 3 packages mentioned: "magic.wand", "magic.portion" and "magic.until". It says to give each module the same name as the package. Therefore, the reference to the module "magic.helper" is incorrect.
Right before that, it says that the magic.helper module contains the magic.util package. The part about giving the module/package the same name applies to the other two which don't have anything specific. While this could certainly be clearer, I don't think it is wrong. I've added a note in our private list of things that could be clearer.
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
"service provider" needs require directive for "service provider interface".
Jeanne Boyarsky wrote:
Jeanne Boyarsky wrote:
Edmund Yong wrote:Chapter 6, Page 342, Question 14 - There are 3 packages mentioned: "magic.wand", "magic.portion" and "magic.until". It says to give each module the same name as the package. Therefore, the reference to the module "magic.helper" is incorrect.
Right before that, it says that the magic.helper module contains the magic.util package. The part about giving the module/package the same name applies to the other two which don't have anything specific. While this could certainly be clearer, I don't think it is wrong. I've added a note in our private list of things that could be clearer.
Actually, there is an errata there. This post explains the problem with magic.helper and magic.util. It must be magic
Hasan Çelik wrote:Dear Jeanne,
As a result, what is the correct result of the question. In the explanation, you said that no modules needed to specify requires on the service provider since that is the implementation.
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
15. Suppose you have separate modules for a service provider interface, service provider, service locator, and consumer. Which module(s) need to specify a requires directive on the service provider?
Service locator Service provider interface Consumer Consumer and service locator Consumer and service provider Service locator and service provider interface Consumer, service locator, and service provider interface None of the above
"service provider" needs require directive for "service provider interface".
Jeanne Boyarsky wrote:
Hasan Çelik wrote:Dear Jeanne,
As a result, what is the correct result of the question. In the explanation, you said that no modules needed to specify requires on the service provider since that is the implementation.
I think the book answer is right if you apply the errata
Options D, E, and F should say “magic.helper” instead of “magic.util”
Hasan Çelik wrote:
When I looked that the answer of this question, a sentence like that "no modules needed to specify requires on the service provider since that is the implementation" is written. But as I understand from the chapter,
"service provider" needs require directive for "service provider interface".
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I am a man of mystery. Mostly because of this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|