Oracle Related Exams
1z0-830 Exam
The Oracle 1z0-830 and 1z0-811 exams cater to different levels of expertise and purposes in Java certification:
Given a properties file on the classpath named Person.properties with the content:
ini
name=James
And:
java
public class Person extends ListResourceBundle {
protected Object[][] getContents() {
return new Object[][]{
{"name", "Jeanne"}
};
}
}
And:
java
public class Test {
public static void main(String[] args) {
ResourceBundle bundle = ResourceBundle.getBundle("Person");
String name = bundle.getString("name");
System.out.println(name);
}
}
What is the given program's output?
Given:
java
var sList = new CopyOnWriteArrayList
Which of the following statements is correct?