Exam 1z0-809 All QuestionsBrowse all questions from this exam
Question 62

Which two code blocks correctly initialize a Locale variable? (Choose two.)

    Correct Answer: D, E

    Locale variables can be initialized correctly using predefined constants and constructors in the Locale class. Using `Locale.UK` is correct because it uses a predefined locale instance for the United Kingdom. Using `new Locale("ru", "RU")` is also correct because it explicitly creates a new Locale object with the specified language and country codes. Options A, B, and C are incorrect due to incorrect methods or syntax.

Discussion
SamriddjiOptions: DE

D, E .. tested

steefaandOptions: DE

D and E are correct.