1Z1-803 無料問題集「Oracle Java SE 7 Programmer I」

Given:
abstract class A1 { public abstract void m1(); public void m2() { System.out.println("Green"); }
}
abstract class A2 extends A1 { public abstract void m3(); public void m1() { System.out.println("Cyan"); } public void m2() { System.out.println("Blue"); }
}
public class A3 extends A2 { public void m1() { System.out.println("Yellow"); }
public void m2() { System.out.println("Pink"); }
public void m3() { System.out.println("Red"); }
public static void main(String[] args) {
A2 tp = new A3();
tp.m1();
tp.m2();
tp.m3();
}
}
What is the result?

解説: (JPNTest メンバーにのみ表示されます)
Given the code fragment:
System.out.printIn ("Result: " +3+5);
System.out.printIn ("Result: " + (3+5));
What is the result?

解説: (JPNTest メンバーにのみ表示されます)
Given the code fragment:
System.out.printIn("Result: " + 2 + 3 + 5); System.out.printIn("Result: " + 2 + 3 * 5);
What is the result?

解説: (JPNTest メンバーにのみ表示されます)
Given:
public class Natural { private int i; void disp() { while (i <= 5) { for (int i=1; i <=5;) { System.out.print(i + " ");
i++; } i++; } } public static void main(String[] args) { new Natural().disp(); }
} What is the result?

解説: (JPNTest メンバーにのみ表示されます)
Given the code fragment:
Int [] [] array = {{0}, {0, 1}, {0, 2, 4}, {0, 3, 6, 9}, {0, 4, 8, 12, 16}};
Systemout.printIn(array [4] [1]);
System.out.printIn (array) [1] [4]);
What is the result?

解説: (JPNTest メンバーにのみ表示されます)
Given:
public class ScopeTest {
int j, int k;
public static void main(String[] args) {
ew ScopeTest().doStuff(); }
void doStuff() {
nt x = 5;
oStuff2();
System.out.println("x");
}
void doStuff2() {
nt y = 7;
ystem.out.println("y");
or (int z = 0; z < 5; z++) {
ystem.out.println("z");
ystem.out.println("y");
}
Which two items are fields?

正解:B、C 解答を投票する
Given:

How many times is 2 printed as a part of the output?

Given the code fragment:

What is the result if the integer aVar is 9?

Given the code fragment:
String[] cartoons = {"tom","jerry","micky","tom"};
int counter =0;
if ("tom".equals(cartoons[0])) {
counter++;
} else if ("tom".equals(cartoons[1])) {
counter++;
} else if ("tom".equals(cartoons[2])) {
counter++;
} else if ("tom".equals(cartoons[3])) {
counter++;
}
System.out.print(counter);
What is the result?

解説: (JPNTest メンバーにのみ表示されます)
Which two will compile, and can be run successfully using the command:
Java fred1 hello walls

正解:A、C 解答を投票する
解説: (JPNTest メンバーにのみ表示されます)
Which two statements correctly describe checked exception?

正解:B、D 解答を投票する
解説: (JPNTest メンバーにのみ表示されます)
Give: What is the result?

Given the code fragment:
1.ArrayList<Integer> list = new ArrayList<>(1);
2.list.add(1001);
3.list.add(1002);
4.System.out.println(list.get(list.size()));
What is the result?

解説: (JPNTest メンバーにのみ表示されます)

弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

オンラインサポート時間:( UTC+9 ) 9:00-24:00
月曜日から土曜日まで

サポート:現在連絡