최신Oracle Upgrade to Java SE 7 Programmer - 1Z1-805무료샘플문제
문제1
Given the code fragment: public class Test {
public static void main (String [] args) {
Path path1 = Paths.get("D:\\sys\\asm\\.\\data\\..\\..\\mfg\\production.log");
System.out.println(path1.normalize());
System.out.println(path1.getNameCount());
}
}
What is the result?
Given the code fragment: public class Test {
public static void main (String [] args) {
Path path1 = Paths.get("D:\\sys\\asm\\.\\data\\..\\..\\mfg\\production.log");
System.out.println(path1.normalize());
System.out.println(path1.getNameCount());
}
}
What is the result?
정답: B
설명: (ExamPassdump 회원만 볼 수 있음)
문제2
Which three objects must a vendor provide implementations in its JDBC driver?
Which three objects must a vendor provide implementations in its JDBC driver?
정답: A,C,D
설명: (ExamPassdump 회원만 볼 수 있음)
문제3
Given:
public class TemperatureSensor {
public TemperatureSensor () {
}
public double getCurrTemp () {
// . . . method to retrieve temperature from a sensor
Return temp;
}
}
Which three changes should you make to apply the singleton design pattern to this class?
Given:
public class TemperatureSensor {
public TemperatureSensor () {
}
public double getCurrTemp () {
// . . . method to retrieve temperature from a sensor
Return temp;
}
}
Which three changes should you make to apply the singleton design pattern to this class?
정답: A,E,G
설명: (ExamPassdump 회원만 볼 수 있음)
문제4
Which two methods are defined in the FileStore class print disk space information?
Which two methods are defined in the FileStore class print disk space information?
정답: C,E
설명: (ExamPassdump 회원만 볼 수 있음)
문제5
The advantage of a CallableStatement over a PreparedStatement is that it:
The advantage of a CallableStatement over a PreparedStatement is that it:
정답: B
설명: (ExamPassdump 회원만 볼 수 있음)
문제6
Given the code fragment:
try {
String query = "SELECT * FROM Employee WHERE ID=110";
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery(query); // Line 13
System.out.println("Employee ID: " + rs.getInt("ID")); // Line 14
} catch (Exception se) {
System.out.println("Error");
}
Assume that the SQL query matches one record. What is the result of compiling and executing this code?
Given the code fragment:
try {
String query = "SELECT * FROM Employee WHERE ID=110";
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery(query); // Line 13
System.out.println("Employee ID: " + rs.getInt("ID")); // Line 14
} catch (Exception se) {
System.out.println("Error");
}
Assume that the SQL query matches one record. What is the result of compiling and executing this code?
정답: A
설명: (ExamPassdump 회원만 볼 수 있음)
문제7
Given:

Which design pattern moves the getPerson, createPerson, deletePerson, and updatePerson methods to a new class?
Given:

Which design pattern moves the getPerson, createPerson, deletePerson, and updatePerson methods to a new class?
정답: C
설명: (ExamPassdump 회원만 볼 수 있음)
문제8
Which two statements are true about the walkFileTree method of the files class?
Which two statements are true about the walkFileTree method of the files class?
정답: A,C
설명: (ExamPassdump 회원만 볼 수 있음)
문제9
You have been asked to create a ResourceBundle file to localize an application.
Which code example specifies valid keys of menu1 and menu2 with values of File Menu and View Menu?
You have been asked to create a ResourceBundle file to localize an application.
Which code example specifies valid keys of menu1 and menu2 with values of File Menu and View Menu?
정답: D
설명: (ExamPassdump 회원만 볼 수 있음)