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: SpanishReference: IS0 639
Why not FR (France)?
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
You’re right.
minutes before baking, and make sure to let your cookies cool for about five minutes on a wire rack.Then serve up and enjoy.Make sure you pour your glass of Lehigh imitation louis vuitton belts http://imitation-louis-vuitton-wallets.blogspot.com/
language codes are always lowercase, so shouldn’t it be:
D. es
E. fr
?
Agree with you!
The language code is either two or three lowercase letters that conform to the ISO 639 standard.
+1
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)
Yes the answer should be D E. Please see IANA Language Subtag Registry for ISO 639:
http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
“es” and “fr” are in the list, while “u8” or other uppercase ones not.