Given the following code, Java will try to find a matching resource bundle.
Which order will Java search to find a match?
Locale.setDefault(new Locale("en")); ResourceBundle.getBundle("AB", new Locale("fr"));
E.
First, Java looks for the requested resource bundle, which is AB_fr.class and then AB_fr.properties.
This rules out Options A, B, and C.
Next, Java looks for the default locale's resource bundle, which is AB_en.properties.
This rules out Option D.
Java looks for the default resource bundle.
First, Java checks for a Java class file resource bundle and then moves on to the property file.
Therefore, Option F is incorrect, and Option E is the answer.