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..You can set the Locale before using a DateFormat or a NumberFormat object
About Question com.enthuware.ets.scjp.v6.2.113 :
Moderators: Site Manager, fjwalraven
About Question com.enthuware.ets.scjp.v6.2.113 :
-
- Site Admin
- Posts: 10062
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.113 :
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!
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.
Re: About Question com.enthuware.ets.scjp.v6.2.113 :
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.
"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.
-
- Site Admin
- Posts: 10062
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.113 :
The option has been updated accordingly.
thank you for your feedback!
thank you for your feedback!
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: Bing [Bot] and 26 guests