Locale Class Flashcards

1
Q

Returns a list of avaliable locales supported by the JVM.

A

static Locale[] getAvailableLocales()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Returns the default locale of the JVM.

A

static Locale getDefault()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Sets the default locale of the JVM.

A

static void setDefault(Locale newLocale)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Returns the country code for the locale object.

A

String getCountry()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Returns the country name for the locale object.

A

String getDisplayCountry()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Returns the language code for the locale object.

A

String getLanguage()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Returns the language name for the locale object.

A

String getDisplayLanguage()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Returns the variant code for the locale object.

A

String getVariant()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

A

String getDisplayVariant()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

A

String toString()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly