Tag Archives: file

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

Given the contents:MessageBundle.properties file:message=HelloMessageBundle_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=Bonjourand 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. MessageBundle_US.properties B. MessageBundle_fr_FR.properties C. MessageBundle_en.properties D. MessageBundle.properties E. MessageBundle_en_US.properties Correct Answer: B

A company has an existing sales application using a Java 8 jar file containing packages: com.company.customer;

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) A. Option A B. Option D C. Option C D. Option B Correct Answer: C

In the spfile of a single instance database, LOCAL_LISTENER is set to LISTENER_1. The TNSNAMES.ORA file

In the spfile of a single instance database, LOCAL_LISTENER is set to LISTENER_1.The TNSNAMES.ORA file in $ORACLE_HOME/network/admin in the database home contains:Which statement is true? A. LISTENER_1 must also be defined in the LISTENER.ORA file to enable dynamic service registration B. Dynamic service registration cannot be used for this database instance C. The LREG process registers services dynamically… Read More »

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

Given the contents:MessageBundle.properties file:message=HelloMessageBundle_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=Bonjourand 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. MessageBundle_US.properties B. MessageBundle.properties C. MessageBundle_en_US.properties D. MessageBundle_en.properties E. MessageBundle_fr_FR.properties Correct Answer: E

A company has an existing sales application using a Java 8 jar file containing packages: com.company.customer;

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) A. Option B B. Option A C. Option D D. Option C Correct Answer: D

A company has an existing sales application using a Java 8 jar file containing packages: com.company.customer;

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) A. Option D B. Option B C. Option C D. Option A Correct Answer: C

Given an application with a main module that has this module-info.java file: (Exhibit) Which two are

Given an application with a main module that has this module-info.java file:Which two are true? (Choose two.) A. An implementation of country.countryDetails can be added to the main module. B. To compile without an error, the application must have at least one module in the module source path that provides an implementation of country.CountryDetails. C. To run without… Read More »