Which two codes correctly represent a standard language locale code?

Which two codes correctly represent a standard language locale code?

Which two codes correctly represent a standard language locale code?

A.
ES

B.
FR

C.
U8

D.
Es

E.
fr

F.
u8

Explanation:

Language codes are defined by ISO 639, an international standard that assigns two- and threeletter codes tomost languages of the world. Locale uses the two-letter codes to identify the target
language.



Leave a Reply 3

Your email address will not be published. Required fields are marked *


l0c

l0c

Locale[] locales = SimpleDateFormat.getAvailableLocales();
for (Locale locale : locales) System.out.println(locale.getLanguage());

This prints a huge list of two-letter lower-case language codes. “fr” is printed. “u8” isn’t printed though.

Javadoc for “getLanguage”:

Returns the language code of this Locale.
Note: ISO 639 is not a stable standard— some languages’ codes have changed. Locale’s constructor recognizes both the new and the old codes for the languages whose codes have changed, but this function always returns the old code. If you want to check for a specific language whose code has changed, don’t do