What is the ResourceBundle class? - Core Java

What is the ResourceBundle class?

A ResourceBundle is a group of related sub classes sharing the same base name. For example, ButtonLabel is the base name. All the characters following the base name indicate the following elements respectively.

language code, country code, platform code.

Example :
Locale.ButtonLabel_en_GB_Unix - It matches the Locale specifies the code for English language(en) and the country code for Great Britain(GB) and the UNIX platform.

What is the ResourceBundle class?

- ResourceBundle contains locale-specific objects.
- A program can load locale-specific objects from the resource bundle per the current user's locale.
- This makes the program free of the locale specific clutter and the programmer can focus on logic.

ResourceBundle allows programs to:

1. Be easily localized, or translated, into different languages
2. Be easily modified later to support even more locales
3. Handle multiple locales simultaneously
What is the Vector class? - Core Java
What is the Vector class? - The capability of implementing a growable array of objects is provided by the class Vector...
What is the SimpleTimeZone class? - Core Java
What is the SimpleTimeZone class? - SimpleTimeZone is a concrete subclass of TimeZone class. The TimeZone class represents a time zone...
Purpose of the System class - Core Java
What is the purpose of the System class? - System class is provided with useful fields (static members) that are pertaining to the environment...
Post your comment