Explain how Java application use multiple locales - Java Localization

Explain how Java application use multiple locales.

Multiple locales can actually be active by a Java application at the same time. A U.S. date format can be used and a German number format within a single / same application. The facility for creating complex combinations that are necessary for multicultural and multilingual applications creation, is provided by ‘Locale’ objects along with different ‘Format’ objects.

The following code snippet creates locale-sensitive classes by providing a local explicitly in a constructor or creation method.
Locale userLocale = preferences.getLocale();
NumberFormat numFrmt = NumberFormat.getInstance(userLocale);
Post your comment