assume that you've the following resource bundles in your classpath:
also assume that the default locale is english (US), where the language code is en and country code is US.
Which one of these five bundles will be loaded for the call.
loadResourceBundle("ResourceBundle", new Locale("fr", "CA", ""));?
C.
Java looks for candidate locales for a base bundle named ResourceBundle and locale French (Canada), and checks for the presence of the following property files:.
ResourceBundle_fr_CA.properties ResourceBundle_fr.properties
Since both of them are not there, Java searches for candidate locales for the base bundle named ResourceBundle and a default locale (english - United States):.
ResourceBundle_en_US.properties ResourceBundle_en.properties
Java finds that there is a matching resource bundle, ResourceBundle_en.properties. Hence it loads this resource bundle.