Given the content:
and the code fragment:What is the result?
Given the content:
and the code fragment:What is the result?
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'.
A tested
The search order for the given locale object is MessagesBundle_fr_FR -> MessagesBundle_fr -> MessagesBundle. So answer is A
yes, MessagesBundle_FR is not considered.
A is the correct answer
A is answer