1Z1-805 試験問題を無料オンラインアクセス

試験コード:1Z1-805
試験名称:Upgrade to Java SE 7 Programmer
認定資格:Oracle
無料問題数:90
更新日:2026-11-16
評価
100%

問題 1

Given the code fragment:
SimpleDateFormat sdf;
Which code fragment displays the two-digit month number?

問題 2

Given the code fragment:
11.
public static getFileSize () throws IOException {
12.
path file = paths.get ("ex.txt");
13.
//insert code here
14.
System.out.println ("size: " + attr.size());
15.
}
public static getFileSize () throws IOException {
Path file = Paths.get ("ex.txt");
//insert code here Line **
System.out.println ("size: " + attr.size());
}
Which two fragments, when inserted independently at line **, enable printing of the file size?

問題 3

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?

問題 4

Which two methods are defined in the FileStore class print disk space information?

問題 5

Given a resource bundle MessageBundle, what is the name of the default bundle file?

コメントを追加

あなたのメールアドレスが公開されることはありません。個人情報に関する内容は隠されます *

insert code
画面にある文字を入力してください。