About Question enthuware.ocpjp.v8.2.1121 :

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

Moderator: admin

Post Reply
lenalena
Posts: 56
Joined: Tue Feb 21, 2017 4:24 pm
Contact:

About Question enthuware.ocpjp.v8.2.1121 :

Post 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".

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

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

Post 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.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 66 guests