About Question enthuware.ocpjp.v7.2.1450 :

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
accurate_guy
Posts: 7
Joined: Sat Mar 15, 2014 5:00 pm
Contact:

About Question enthuware.ocpjp.v7.2.1450 :

Post by accurate_guy »

Q: Identify correct statements about i18n.
A: Using default locale for NumberFormat and DateFormat automatically ensures that the formatted text will be localized to the location setting of the machine on which the code is run.

This is not completely true because the default locale can be changed
* by using VM arguments: -Duser.language=en
* and by setting it in the code: Locale.setDefault(new Locale("en"));

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

Re: About Question enthuware.ocpjp.v7.2.1450 :

Post by admin »

Well, by changing the default locale, you are telling the JVM that your default locale is something else. NumberFormat and DateFormat will behave according to the new default locale.

But you are right there is some ambiguity in the statement. This has now been fixed.

thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests