최신Oracle Java SE 8 Programmer I (1z0-808日本語版) - 1z0-808日本語무료샘플문제
문제1
コードの断片を考えると、次のようになります。
// insert code here
arr[0] = new int[3];
arr[0][0] = 1;
arr[0][1] = 2;
arr[0][2] = 3;
arr[1] = new int[4];
arr[1][0] = 10;
arr[1][1] = 20;
arr[1][2] = 30;
arr[1][3] = 40;
// ここにコードを挿入する行に独立して挿入された 2 つのステートメントは、コードのコンパイルを可能にしますか?
コードの断片を考えると、次のようになります。
// insert code here
arr[0] = new int[3];
arr[0][0] = 1;
arr[0][1] = 2;
arr[0][2] = 3;
arr[1] = new int[4];
arr[1][0] = 10;
arr[1][1] = 20;
arr[1][2] = 30;
arr[1][3] = 40;
// ここにコードを挿入する行に独立して挿入された 2 つのステートメントは、コードのコンパイルを可能にしますか?
정답: A,B
문제2
与えられた主な方法:

結果は何ですか?
与えられた主な方法:

結果は何ですか?
정답: D
설명: (ExamPassdump 회원만 볼 수 있음)
문제3
与えられたコード断片:

結果は何ですか?
与えられたコード断片:

結果は何ですか?
정답: E
설명: (ExamPassdump 회원만 볼 수 있음)
문제4
コードの断片を考えると、次のようになります。
StringBuilder sb = new StringBuilder();
sb.append("World");
Hello World を出力するフラグメントはどれですか?
sb.insert(0, "Hello ");
コードの断片を考えると、次のようになります。
StringBuilder sb = new StringBuilder();
sb.append("World");
Hello World を出力するフラグメントはどれですか?
sb.insert(0, "Hello ");
정답: C
문제5
与えられる:
public class TestField {
int x;
int y;
public void doStuff(int x, int y) {
this.x = x;
y =this.y;
}
public void display() {
System.out.print(x + " " + y + " : ");
}
public static void main(String[] args) {
TestField m1 = new TestField();
m1.x = 100;
m1.y = 200;
TestField m2 = new TestField();
m2.doStuff(m1.x, m1.y);
m1.display();
m2.display();
}
}
結果は何ですか?
与えられる:
public class TestField {
int x;
int y;
public void doStuff(int x, int y) {
this.x = x;
y =this.y;
}
public void display() {
System.out.print(x + " " + y + " : ");
}
public static void main(String[] args) {
TestField m1 = new TestField();
m1.x = 100;
m1.y = 200;
TestField m2 = new TestField();
m2.doStuff(m1.x, m1.y);
m1.display();
m2.display();
}
}
結果は何ですか?
정답: C
문제6
与えられた:

結果は何ですか?
与えられた:

結果は何ですか?
정답: B
문제7
チェックされた例外を正しく説明している 2 つのステートメントはどれですか?
チェックされた例外を正しく説明している 2 つのステートメントはどれですか?
정답: A,B
문제8
与えられる:

与えられる:

정답: D
문제9
与えられる:

結果は何ですか?
与えられる:

結果は何ですか?
정답: C
문제10
与えられる:

結果は何ですか?
与えられる:

結果は何ですか?
정답: E
설명: (ExamPassdump 회원만 볼 수 있음)
문제11
与えられる:
class Overloading {
int x(double d) {
System.out.println("one");
return 0;
}
String x(double d) {
System.out.println("two");
return null;
}
double x(double d) {
System.out.println("three");
return 0.0;
}
public static void main(String[] args) {
new Overloading().x(4.0);
}
}
結果は何ですか?
与えられる:
class Overloading {
int x(double d) {
System.out.println("one");
return 0;
}
String x(double d) {
System.out.println("two");
return null;
}
double x(double d) {
System.out.println("three");
return 0.0;
}
public static void main(String[] args) {
new Overloading().x(4.0);
}
}
結果は何ですか?
정답: A