nerdexam
Oracle

1Z0-809 · Question #235

1Z0-809 Question #235: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-809 to reveal the answer and full explanation for question #235. The question stem and answer options stay visible for context.

Question

Given the content: MessagesBundle.properties file: inquiry = How are you? MessagesBundle_de_DE.properties file: inquiry = Wie geht's? and given the code fragment: Locale currentLocale; // Line 1 ResourceBundle messages = ResourceBundle.getBundle("MessagesBundle", currentLocale); System.out.println(messages.getString("inquiry")); Which two code fragments, when inserted at line 1 independently, enable the code to print "Wie geht's"?

Options

  • AcurrentLocale = new Locale ("de", "DE");
  • BcurrentLocale = new Locale.Builder().setLanguage("de").setRegion("DE").build();
  • CcurrentLocale = Locale.GERMAN;
  • DcurrentLocale = new Locale(); currentLocale.setLanguage("de"); currentLocale.setRegion ("DE");
  • EcurrentLocale = Locale.getinstance(Locale.GERMAN,Locale.GERMANY);

Unlock 1Z0-809 to see the answer

You've previewed enough free 1Z0-809 questions. Unlock 1Z0-809 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 1Z0-809 Practice