Given the contents: MessageBundle.properties file: message=Hello MessageBundle_en.properties file: message=Hello

By | January 7, 2023

Given the contents:
MessageBundle.properties file:
message=Hello
MessageBundle_en.properties file:
message=Hello (en)
MessageBundle_US.properties file:
message=Hello (US)
MessageBundle_en_US.properties file:
message=Hello (en_US)
MessageBundle_fr_FR.properties file:
message=Bonjour
and the code fragment:
Locale.setDefault(Locale.FRANCE);
Locale currentLocale = new Locale.Builder().setLanguage(“en”).build();
ResourceBundle messages = ResourceBundle.getBundle(“MessageBundle”, currentLocale); System.out. println(messages.getString(“message”)); Which file will display the content on executing the code fragment?

Correct Answer: B