Java OCA OCP Practice Question 2254

Question

Which of the following shows a valid Locale format? (Choose two.)

  • A. de
  • B. DE
  • C. de_DE
  • D. DE_de


A, C.

Note

A Locale uses lowercase letters for language codes and uppercase letters for country codes.

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

If both a language and country code are present, the language code is first, making Option C correct.




PreviousNext

Related