IT認証試験問題集
毎月、ITshikenは1500人以上の受験者が試験準備を助けて、試験に合格するために受験者にご協力します
 ホームページ / 1Z0-805 問題集  / 1Z0-805 問題練習

Oracle 1Z0-805 問題練習

Upgrade to Java SE 7 Programmer 試験

最新更新時間: 2019/05/10,合計90問。

平成から令和へ:1Z0-805 最新真題を買う時、日本語版と英語版両方を同時に獲得できます。

実際の問題集を練習し、試験のポイントを了解し、テストに申し込むするかどうかを決めることができます。

さらに試験準備時間の35%を節約するには、1Z0-805 問題集を使用してください。

 / 6

Question No : 1
Which two code blocks correctly initialize a Locale variable?

正解:

Question No : 2
Which two file attribute views support reading or updating the owner of a file?

正解:

Question No : 3
Given: public class StringApp { public static void main(String[] args) {
String[] str="Java SE,java EE,Java ME,java FX".split(","); int count=0; for(int i=0;i<str.length;i++) { switch(str[i]) { case "Java SE": count++; continue; case "Java EE": count++; break; case "Java ME": count++; break; case "Java FX": count++; break; } } System.out.println("Total match found="+count); } }
What is the result?

正解:

Question No : 4
Given:
public class MyGrades {
private final List<Integer> myGrades = new ArrayList<Integer>();
private final ReadWriteLock rwlock = new ReentrantReadWriteLock();
public void addGrade(Integer grade) {
// acquire _______ lock
myGrades.add(grade);
// release __________ lock
} public void averageGrades() {
// acquire _______ lock Line **
double sum = 0;
int i = 0;
for (i = 0; i < myGrades.size(); i++) {
sum += myGrades.get(i);
}
// release __________ lock Line ***
System.out.println("The average is: " + sum/(i+1));
}
}
Which pair’s statements should you insert at lines ** and lines *** (respectively) to acquire and release the most appropriate lock?

正解:

Question No : 5
Which method or methods should you implement to create your own implementation of the java.nio.file.PathMatcher interface?

正解:

Question No : 6
In the Java SE7 API, which method is most commonly used by factories to instantiate objects?

正解:

Question No : 7
Given this code fragment:
try { String query = "SELECT * FROM Item"; Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery(query); ResultSetMetaData rsmd = rs.getMetaData(); int rowCount = rsmd.getRowCount(); System.out.println ("Processing: " + rowCount + " rows."); while (rs.next()) { // Process each row }
} catch (SQLException se) {
System.out.println("Error");
}
Assume that the SQL query returns records. What is the result?

正解:

Question No : 8
Given the code fragment:
public class App { public static void main (String [] args) { path path = paths.get(“C\\educations\\institute\\student\\report.txt”); system.out.printIn(“getName(0): %s”, path.getName(0)); system.out.prinIn(“subpath(0, 2): %s” path.subpath(0, 2)); } }
What is the result?

正解:

Question No : 9
Which two fragments can be combined into a statement that returns an ExecuteService instance?

正解:

Question No : 10
What is the minimum SQL standard that a JDBC API implementation must support?

正解:

Question No : 11
Given the code fragment:
public static void main(String[] args) { Path file = Paths.get("D:\\company\\report.txt"); try (SeekableByteChannel sbc = Files.newByteChannel(file,new OpenOption[] What is the result if the report.txt file contains Welcome to the world of Java?

正解:

Question No : 12
Which two methods are defined in the FileStore class print disk space information?

正解:

Question No : 13
Given: public class MyGrades { private final List<Integer> myGrades = new ArrayList<Integer>();
private final ReadWriteLock rwlock = new ReentrantReadWriteLock();
public void addGrade(Integer grade) { /* lock and modify */ }
public void averageGrades() { // acquire _______ lock Line ** double sum = 0; int i = 0; for (i = 0; i < myGrades.size(); i++) { sum += myGrades.get(i);
}
// release __________ lock Line ***
System.out.println("The average is: " + sum/(i+1));
}
}
Which pair’s statements should you insert at line ** and line *** (respectively) to acquire and release the most appropriate lock?

正解:

Question No : 14
Which three objects must a vendor provide implementations in its JDBC driver?

正解:

Question No : 15
Given:
ConcurrentMap<String, String> partList = new ConcurrentHashMap<> ();
Which fragment puts a key/value pair in partList without the possibility of overwriting an existing key?

正解:

 / 6