Oracle
1Z0-804 · Question #95
1Z0-804 Question #95: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-804 to reveal the answer and full explanation for question #95. The question stem and answer options stay visible for context.
Question
Given three resources bundles with these values set for menu1: (the default resource bundle in US English.) English US Resource Bundle Menu1 = small French Resource Bundle Menu1 = petit Chinese Resource Bundle Menu1 = And given the code fragment: Locale.setDefault(new Locale("es", "ES")); // Set default to Spanish and Spain Locale loc1 = Locale.getDefault(); ResourceBundle message = ResourceBundle.getBundle("MessageBundle", loc1); System.out.println(message.getString("menu1")); What is the result?
Options
- ANo message is printed
- Bpetit
- Csmall
- DA runtime error is produced
Unlock 1Z0-804 to see the answer
You've previewed enough free 1Z0-804 questions. Unlock 1Z0-804 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.