1Z0-805 試験問題を無料オンラインアクセス
| 試験コード: | 1Z0-805 |
| 試験名称: | Upgrade to Java SE 7 Programmer |
| 認定資格: | Oracle |
| 無料問題数: | 90 |
| 更新日: | 2026-05-30 |
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:
List<Person> pList = new CopyOnWriteArrayList<Person>();
Which statement is true?
The default file system includes a logFiles directory that contains the following files:
log - Jan2009
log_01_2010
log_Feb2010
log_Feb2011
log-sum-2012
How many files the matcher in this fragment match?
PathMatcher matcher = FileSystems.getDefault ().getPathMatcher ("glob:???_*1");