Oracle
1Z0-805 · Question #20
1Z0-805 Question #20: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-805 to reveal the answer and full explanation for question #20. The question stem and answer options stay visible for context.
Question
Given the code fragment: Locale loc1 = Locale.getDefault (); ResourceBundle messages = ResourceBundle.getBundle("MessageBundle", loc1); Which two statements are a valid way to re-assign a resource bundle to a different Locale?
Options
- Aloc1 = ResourceBundle.getBundle ("MessageBundle", Locale.CHINA);
- Bloc1 = ResourceBundle.getBundle ("MessageBundle", new Locale ("es", "ES"));
- Cmessages = ResourceBundle.getBundle ("messageBundle", new Locale ("es", "ES"));
- Dmessages = ResourceBundle.getBundle ("MessageBundle", Locale.CHINA);
Unlock 1Z0-805 to see the answer
You've previewed enough free 1Z0-805 questions. Unlock 1Z0-805 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.