Page 1 of 1
About Question com.enthuware.ets.scjp.v6.2.113 :
Posted: Mon Feb 28, 2011 7:57 am
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..
Re: About Question com.enthuware.ets.scjp.v6.2.113 :
Posted: Wed Mar 02, 2011 6:06 am
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!
Re: About Question com.enthuware.ets.scjp.v6.2.113 :
Posted: Tue Jan 17, 2012 9:50 am
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.
Re: About Question com.enthuware.ets.scjp.v6.2.113 :
Posted: Tue Jan 17, 2012 9:30 pm
by admin
The option has been updated accordingly.
thank you for your feedback!