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

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

Question

Given the content:

MessagesBundle.properties file:
inquiry = How are you?

MessagesBundle_de_DE.properties fil

inquiry = Wie geht's?
Locale currentLocale;
// line 1

ResourceBundle messages = ResourceBundle.getBundle ("MessagesBundle",

currentLocale) ;
System. out .printin (messages. getString("inguiry"));

Which two code fragments, when inserted at line 1 independently, enable the code to print "Wie geht's?"

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

BD.