The java.util.Locale class object represents a specific
geographical, political, or cultural region. .Following are the
important points about Locale:
- An operation that requires a Locale to perform its task is called locale-sensitive and uses the Locale to form information for the user.
- Locale is a mechanism for identifying objects, not a container for the objects themselves.
- For example, the AroundTheWorld program uses three Locale objects: one for the United States, one for France, and one for French Canada. These Locale objects do not contain the population, literacy rate, or any other AroundTheWorld specific data. The application-specific data is contained in resource bundles. The program uses a Locale object to identify what the current locale is and to decide which resource bundle to use to construct its display.
- Class Declaration:
public final class Locale extends Object implements Cloneable, Serializable
No comments:
Post a Comment