Which two statements are true about localizing an application? (Choose two.)
Click on the arrows to vote for the correct answer
A. B. C. D. E.AE.
http://docs.oracle.com/javase/7/docs/technotes/guides/intl/Sure, I'd be happy to help!
Localizing an application involves adapting it to different languages and regions so that it can be used by people from different parts of the world. Here are the explanations for the two statements that are true about localizing an application:
A. Support for new regional languages does not require recompilation of the code.
This statement is true. In Java, localization is typically achieved using resource bundles, which are sets of properties files that contain localized data such as messages, labels, and other text-based content. When an application is localized, the resource bundle files are swapped out for the appropriate language and region, without the need to recompile the code. This allows for greater flexibility and ease of maintenance.
B. Textual elements (messages and GUI labels) are hard-coded in the code.
This statement is false. Hard-coding textual elements in the code can make it difficult to localize an application. Instead, textual elements should be stored in resource bundles, which can be easily swapped out for the appropriate language and region. This allows for greater flexibility in adapting an application to different languages and regions, without the need to modify the code itself.
C. Language and region-specific programs are created using localized data.
This statement is true, but it is not the best answer to the question. It is a general statement about how localization works, rather than a statement specifically about localizing a Java application. In Java, localized data is typically stored in resource bundle files, which are separate from the code itself. The localized data can then be used to create language and region-specific versions of the application.
D. Resource bundle files include data and currency information.
This statement is true. Resource bundle files can contain a variety of localized data, including messages, labels, and other text-based content, as well as currency information and other data specific to the target region.
E. Language codes use lowercase letters and region codes use uppercase letters.
This statement is false. Language codes and region codes are both specified using lowercase letters. For example, the language code for English is "en", and the region code for the United States is "us".