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 three-letter codes to most languages of the world. Locale uses the two-letter codes to identify the target language.
ES, es: Spanish

Reference: IS0 639



Leave a Reply 9

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


Julia

Julia

Why not FR (France)?

Francesco

Francesco

I suspect that the answers are put in the wrong way. I think it should be:
1. ES es
2. FR fr
3. U8 u8

admin

admin

You’re right.

Riddler

Riddler

language codes are always lowercase, so shouldn’t it be:

D. es
E. fr

?

Dan

Dan

Agree with you!

The language code is either two or three lowercase letters that conform to the ISO 639 standard.

Serg

Serg

java.util
Class Locale

java.lang.Object
java.util.Locale
All Implemented Interfaces:
Serializable, Cloneable

language
ISO 639 alpha-2 or alpha-3 language code, or registered language subtags up to 8 alpha letters (for future enhancements).
The language field is case insensitive, but Locale always canonicalizes to LOWER case.

Example: “en” (English), “ja” (Japanese), “kok” (Konkani)