최신Oracle Java SE 11 Programmer II - 1Z1-816무료샘플문제
문제1
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?
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?
정답: D
설명: (KoreaDumps 회원만 볼 수 있음)
문제2
Given:

and

Which code fragment on line 1 makes the s1 set contain the names of all employees born before January 1, 1989?

Given:

and

Which code fragment on line 1 makes the s1 set contain the names of all employees born before January 1, 1989?

정답: A
문제3
Given:

When run and all three files exist, what is the state of each reader on Line 1?
Given:

When run and all three files exist, what is the state of each reader on Line 1?
정답: C
문제4
Given:
List<String> longlist = List.of("Hello","World","Beat");
List<String> shortlist = new ArrayList<>();
Which code fragment correctly forms a short list of words containing the letter "e"?

Given:
List<String> longlist = List.of("Hello","World","Beat");
List<String> shortlist = new ArrayList<>();
Which code fragment correctly forms a short list of words containing the letter "e"?

정답: D
문제5
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 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)

정답: D
설명: (KoreaDumps 회원만 볼 수 있음)
문제6
Given:

Which three actions implement Java SE security guidelines? (Choose three.)
Given:

Which three actions implement Java SE security guidelines? (Choose three.)
정답: E,F,G
문제7
Which interface in the java.util.function package can return a primitive type?
Which interface in the java.util.function package can return a primitive type?
정답: D
설명: (KoreaDumps 회원만 볼 수 있음)
문제8
Given:

When is the readObject method called?
Given:

When is the readObject method called?
정답: B
설명: (KoreaDumps 회원만 볼 수 있음)