nerdexam
Oracle

1Z0-819 · Question #148

1Z0-819 Question #148: Real Exam Question with Answer & Explanation

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

Question

What is the result of running this code if these three property files are available.

employees.properties

name=Nick age=44 salary=10000

employees_CA.properties

name=Melissa age=45

employees_en.properties

age=44

employees_en_CA.properties

name=Alice 1 var CA = new Locale("en", "CA"); 2 ResourceBundle b = ResourceBundle.getBundle("employees", CA); 3 System.out.println(b.getString("name")); 4 System.out.println(b.getString("age")); 5 System.out.println(b.getString("salary"));

Options

  • AThrows MissingResourceException
  • BAlice 44 10000
  • CAlice Melissa 10000
  • DNick Alice 10000
  • EThrows some othing else F. Does not compile

Unlock 1Z0-819 to see the answer

You've previewed enough free 1Z0-819 questions. Unlock 1Z0-819 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-819 Practice