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"));
About Question enthuware.ocpjp.v7.2.1450 :
Moderators: Site Manager, fjwalraven
-
- Posts: 7
- Joined: Sat Mar 15, 2014 5:00 pm
- Contact:
-
- Site Admin
- Posts: 10389
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1450 :
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!
But you are right there is some ambiguity in the statement. This has now been fixed.
thank you for your feedback!
Who is online
Users browsing this forum: No registered users and 31 guests