About Question com.enthuware.ets.scjp.v6.2.113 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
ETS User

About Question com.enthuware.ets.scjp.v6.2.113 :

Post by ETS User »

You can set the Locale before using a DateFormat or a NumberFormat object
It's a little confusing - moment of creating object (calling getInstance()) - it's not a moment when I'm using that object. In my opinion..

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

Re: About Question com.enthuware.ets.scjp.v6.2.113 :

Post by admin »

Right, so at the time of getting an instance, you can set the locale. You can't change it after that. Hence, the option is not correct.
Any suggestion on how it may be worded better?

thanks!
If you like our products and services, please help us by posting your review here.

Guest

Re: About Question com.enthuware.ets.scjp.v6.2.113 :

Post by Guest »

I agree with the previous post:
"You can set the Locale before using a DateFormat or a NumberFormat object to do country specific formatting."

Before using a DateFormat or NumberFormat object, one must create an instance of said object. When creating the instance, the Locale can be specified. If one were to specify the Locale when instantiating the DateFormat/NumberFormat object it could be said that one set the Locale before using the object to do country specific formatting.


A suggestion for a different way to word this option:
"After instantiating a DateFormat or a NumberFormat object, you can set the objects Locale."

Or, make it a multiple choice answer and allow the offending answer, as it is (so far as I can tell) a valid and correct response.

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

Re: About Question com.enthuware.ets.scjp.v6.2.113 :

Post by admin »

The option has been updated accordingly.

thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 26 guests