Page 1 of 1

About Question enthuware.ocpjp.v8.2.1121 :

Posted: Fri May 19, 2017 11:03 am
by lenalena
Hello,

The question states
Which of the following are required to construct a Locale?
If a question (on the exam) states that we are required to "construct" something - does it imply that the constructor will be used to generate the object (as opposed to a Builder)? Because one can technically construct (if it means just a general "create") a Locale through a builder, and then the second parameter that would need to be used would be "region", not "country".

I'm wondering because if a question like this comes up on the exam with 2 possible answer choices, I'm not sure I would have selected "country" necessarily if I were to consider the Builder pattern for Locale "construction".

Re: About Question enthuware.ocpjp.v8.2.1121 :

Posted: Fri May 19, 2017 10:21 pm
by admin
Yes, if the question is about Locale then you should consider only the Locale class and not Locale.Builder. The question will mention Locale.Builder if it wants you to.