Locale Class Flashcards Preview

OCP > Locale Class > Flashcards

Flashcards in Locale Class Deck (10):
1

Returns a list of avaliable locales supported by the JVM.

static Locale[] getAvailableLocales()

2

Returns the default locale of the JVM.

static Locale getDefault()

3

Sets the default locale of the JVM.

static void setDefault(Locale newLocale)

4

Returns the country code for the locale object.

String getCountry()

5

Returns the country name for the locale object.

String getDisplayCountry()

6

Returns the language code for the locale object.

String getLanguage()

7

Returns the language name for the locale object.

String getDisplayLanguage()

8

Returns the variant code for the locale object.

String getVariant()

9

Returns the name of the variant code for the locale object.

String getDisplayVariant()

10

Overridden method of Object that returns a string comprised of the codes for the locale's language, country, variant, etc.

String toString()