Title: Key Concepts
Course: CPS 189: Java Certification - Review, Practice & Prepare (Development) > Section: (OLDstyle) Learning Modules

Locale

- A locale is a combination of a language and a region.
- A locale object enables an application to behave differently depending on its current geographic location.
- There are four ways to create a locale object:

Use the Locale.Builder class.

Use one of the three Locale constructors.

Use the Locale.forLanguageTag method.

Use Locale constants.

- By quering the locale object, an application can display the data in the local formats including numbers, currencies, dates, and times.
- For more information see:

Setting the Locale

Creating a Locale

Numbers and Currencies

Dates and Times