Question 88 of 130 from exam 1Z0-809: Java SE 8 Programmer II

Question 88 of 130 from exam 1Z0-809: Java SE 8 Programmer II

Question

Given the content:

MessagesBundle. properties fill

username = Enter User Name
password = Enter Password

MessagesBundle_fr_FR.properties file:

username = Entrez le nom d'utilisateur
password = Entrez le mot de passe
Locale currentLocale = new Locale.Builder() .setRegion ("FR") .setLanguage ("fr") .build();
ResourceBundle messages = ResourceBundle.getBundle("MessagesBundle", currentLocale);
Enumeration<String> names = messages.getKeys();
while (names.hasMoreElements()) (
String key = names.nextElement ()7
String name = messages.getString (key)
System.out.printin(key + " + name!

What is the result?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A.