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

Given the content:

and the code fragment:

What is the result?

    Correct Answer: A

    The code sets the locale to French (France) using the setRegion and setLanguage methods. When the ResourceBundle retrieves the localized properties, it first looks for MessagesBundle_fr_FR.properties. Since this file exists and contains French translations for 'username' and 'password', the program prints 'username = Entrez le nom d'utilisateur password = Entrez le mot de passe'.

Discussion
Elena_CorinaOption: A

A tested

lchowenOption: A

The search order for the given locale object is MessagesBundle_fr_FR -> MessagesBundle_fr -> MessagesBundle. So answer is A

duydn

yes, MessagesBundle_FR is not considered.

asdfjhfgjuaDCVOption: A

A is the correct answer

asdfjhfgjuaDCVOption: A

A is answer