Given:
and
What is the result?
Correct Answer:B
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:C
Given the code fragment:
What is the result?
Correct Answer:B
Given the code fragment:
What is the result?
Correct Answer:A
Which is a proper JDBC URL?
Correct Answer:D
Given:
Which two interfaces can be used in lambda expressions? (Choose two.)
Correct Answer:CD