Java OCA OCP Practice Question 2098

Question

Which of the following shows a valid Locale format?.

  • A. en
  • B. US
  • C. US_en
  • D. None of the above


A.

Note

A Locale can consist of a language only, making Option A correct.

It cannot consist of a country code without a language, so Option B is incorrect.

Finally, if both a language and country code are present, the language code is first, making Option C incorrect.




PreviousNext

Related