Java SE 8 Programmer II — Question 49
Which two statements are true about localizing an application? (Choose two.)
Answer options
- A. Support for new regional languages does not require recompilation of the code.
- B. Textual elements (messages and GUI labels) are hard-coded in the code.
- C. Language and region-specific programs are created using localized data.
- D. Resource bundle files include data and currency information.
- E. Language codes use lowercase letters and region codes use uppercase letters.
Correct answer: A, E
Explanation
Option A is correct because adding new regional language support can be done by modifying resource files without the need to recompile the application code. Option E is also accurate as language codes are conventionally written in lowercase, whereas region codes are written in uppercase. Options B, C, and D are incorrect because they do not accurately reflect the principles of localization; for instance, textual elements should ideally not be hard-coded, and resource bundles typically do not include currency information.