Exam Name: | Java SE 11 Developer | ||
Exam Code: | 1z0-819 Dumps | ||
Vendor: | Oracle | Certification: | Java SE |
Questions: | 296 Q&A's | Shared By: | amani |
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?
A company has an existing sales application using a Java 8 jar file containing packages:
com.company.customer;
com.company.customer.orders;
com.company.customer.info;
com.company.sales;
com.company.sales.leads;
com.company.sales.closed;
com.company.orders;
com.company.orders.pending;
com.company.orders.shipped.
To modularize this jar file into three modules, customer, sales, and orders, which module-info.java would be correct?
A)
B)
C)
D)