Oracle Java SE 8 Programmer I (1z0-808日本語版) (1z0-808日本語) Free Practice Test
Question 1
コードの断片を考えると、次のようになります。
StringBuilder sb = new StringBuilder ( ) ;
Sb.append ("world");
Hello World を出力するコード部分はどれですか?
StringBuilder sb = new StringBuilder ( ) ;
Sb.append ("world");
Hello World を出力するコード部分はどれですか?
Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 2
与えられる:
public class String1 {
public static void main(String[] args) {
String s = "123";
if (s.length() >2)
s.concat("456");
for(int x = 0; x <3; x++)
s += "x";
System.out.println(s);
}
}
結果は何ですか?
public class String1 {
public static void main(String[] args) {
String s = "123";
if (s.length() >2)
s.concat("456");
for(int x = 0; x <3; x++)
s += "x";
System.out.println(s);
}
}
結果は何ですか?
Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 3
Java 言語のオブジェクト指向機能を説明している 3 つのステートメントはどれですか?
Correct Answer: B,E,F
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 4
どのコード部分がコンパイルエラーを引き起こしますか?
float flt = 100F;
float flt = 100F;
Correct Answer: E
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 5
コード形式を考えると、次のようになります。

コードをコンパイルできるようにするには、どのコード フラグメントを 6 行目に挿入する必要がありますか?

コードをコンパイルできるようにするには、どのコード フラグメントを 6 行目に挿入する必要がありますか?
Correct Answer: D
Question 6
与えられる:
結果は何ですか?

結果は何ですか?

Correct Answer: D
Question 7
与えられる:

コードの断片は次のとおりです。

14 行目に挿入すると、Mike Found を出力できるコード フラグメントはどれですか?

コードの断片は次のとおりです。

14 行目に挿入すると、Mike Found を出力できるコード フラグメントはどれですか?
Correct Answer: D
Question 8
コードの断片を考えると、次のようになります。
for (int ii = 0; ii < 3;ii++) {
int count = 0;
for (int jj = 3; jj > 0; jj--) {
if (ii == jj) {
++count;
break;
}
}
System.out.print(count);
continue;
}
結果は何ですか?
for (int ii = 0; ii < 3;ii++) {
int count = 0;
for (int jj = 3; jj > 0; jj--) {
if (ii == jj) {
++count;
break;
}
}
System.out.print(count);
continue;
}
結果は何ですか?
Correct Answer: A
Question 9
2 次元配列の有効な宣言は次のうちどれですか?
Correct Answer: A,C
Question 10
与えられた:

結果はどうですか?

結果はどうですか?
Correct Answer: B
Question 11
与えられる:
メインテスト.java:

そしてコマンド:

結果は何ですか?
メインテスト.java:

そしてコマンド:

結果は何ですか?
Correct Answer: C
Question 12
結果は何ですか?
boolean log3 = ( 5.0 != 6.0) && ( 4 != 5);
boolean log4 = (4 != 4) || (4 == 4);
System.out.println("log3:"+ log3 + \nlog4" + log4);
boolean log3 = ( 5.0 != 6.0) && ( 4 != 5);
boolean log4 = (4 != 4) || (4 == 4);
System.out.println("log3:"+ log3 + \nlog4" + log4);
Correct Answer: D