1z0-809 Exam QuestionsBrowse all questions from this exam

1z0-809 Exam - Question 239


Which two code blocks correctly initialize a Locale variable?

Show Answer
Correct Answer: DE

The correct initialization of Locale variables involves using the predefined Locale constants or constructing a new Locale object with language and country codes. Locale loc4 = Locale.UK; correctly uses the predefined constant for the UK locale. Locale loc5 = new Locale ('ru', 'RU'); correctly constructs a new Locale object for Russia with both the language and country codes.

Discussion

5 comments
Sign in to comment
thetech
Dec 5, 2019

Answer is correct.

WilsonKKerllOptions: DE
Mar 22, 2022

Answer is D && E.

iSnoverOptions: DE
Feb 8, 2024

Answer is DE.

steefaandOptions: DE
Feb 8, 2024

D and E are correct.

DarGrinOptions: DE
Jun 8, 2024

D and E