최신Oracle Java SE 8 Programmer II (1z0-809日本語版) - 1z0-809日本語무료샘플문제
문제1
コードの断片を考えると:

結果は何ですか?
コードの断片を考えると:

結果は何ですか?
정답: B
문제2
コードの断片を考えると:
Path file = Paths.get ("courses.txt");
// line n1
Assume the courses.txt is accessible.
Which code fragment can be inserted at line n1 to enable the code to print the content of the courses.txt file?
コードの断片を考えると:
Path file = Paths.get ("courses.txt");
// line n1
Assume the courses.txt is accessible.
Which code fragment can be inserted at line n1 to enable the code to print the content of the courses.txt file?
정답: B
문제3
コードの断片を考えると:

Which code fragment, when inserted at line n1, ensures false is printed?
コードの断片を考えると:

Which code fragment, when inserted at line n1, ensures false is printed?
정답: B
문제4
Given:

結果は何ですか?
Given:

結果は何ですか?
정답: C
설명: (KoreaDumps 회원만 볼 수 있음)
문제5
Which two methods from the java.util.stream.Stream interface perform a reduction operation?
Which two methods from the java.util.stream.Stream interface perform a reduction operation?
정답: B,C
설명: (KoreaDumps 회원만 볼 수 있음)
문제6
Given that /green.txt and /colors/yellow.txt are accessible, and the code fragment:
Path source = Paths.get("/green.txt);
Path target = Paths.get("/colors/yellow.txt);
Files.move(source, target, StandardCopyOption.ATOMIC_MOVE);
Files.delete(source);
どちらの説明が正しいですか?
Given that /green.txt and /colors/yellow.txt are accessible, and the code fragment:
Path source = Paths.get("/green.txt);
Path target = Paths.get("/colors/yellow.txt);
Files.move(source, target, StandardCopyOption.ATOMIC_MOVE);
Files.delete(source);
どちらの説明が正しいですか?
정답: D
문제7
Given:
public class Canvas implements Drawable {
public void draw () { }
}
public abstract class Board extends Canvas { }
public class Paper extends Canvas {
protected void draw (int color) { }
}
public class Frame extends Canvas implements Drawable {
public void resize () { }
}
public interface Drawable {
public abstract void draw ();
}
どちらの説明が正しいですか?
Given:
public class Canvas implements Drawable {
public void draw () { }
}
public abstract class Board extends Canvas { }
public class Paper extends Canvas {
protected void draw (int color) { }
}
public class Frame extends Canvas implements Drawable {
public void resize () { }
}
public interface Drawable {
public abstract void draw ();
}
どちらの説明が正しいですか?
정답: E
문제8
Studentテーブルの構造を考えると:
学生(id INTEGER、name VARCHAR)
STUDENTテーブルのレコードを考えると:

コードの断片を考えると:

と仮定する:
結果は何ですか?
Studentテーブルの構造を考えると:
学生(id INTEGER、name VARCHAR)
STUDENTテーブルのレコードを考えると:

コードの断片を考えると:

と仮定する:
結果は何ですか?
정답: B
문제9
与えられた条件:

そしてコードフラグメント:

candlist に Candidate オブジェクトが含まれていると仮定すると、どのコード フラグメントが NewYork の候補者の平均年齢を計算しますか。
与えられた条件:

そしてコードフラグメント:

candlist に Candidate オブジェクトが含まれていると仮定すると、どのコード フラグメントが NewYork の候補者の平均年齢を計算しますか。
정답: C
문제10
与えられた:
public class Counter {
public static void main (String[ ] args) {
int a = 10;
int b = -1;
assert (b >=1) : "Invalid Denominator";
int = a / b;
System.out.println (c);
}
}
-eaオプションを使用してコードを実行した結果はどうなりますか?
与えられた:
public class Counter {
public static void main (String[ ] args) {
int a = 10;
int b = -1;
assert (b >=1) : "Invalid Denominator";
int = a / b;
System.out.println (c);
}
}
-eaオプションを使用してコードを実行した結果はどうなりますか?
정답: D