1z1-808 無料問題集「Oracle Java SE 8 Programmer I」

Given:

What is the result?

解説: (JPNTest メンバーにのみ表示されます)
Given the class definitions:
class C1 {}
class C2 extends C1 {}
class C3 extends C2 {}
and the code fragment:
16. C1 obj1 = (C1) new C2();
17. C2 obj2 = (C2) new C3();
18. C2 obj3 = (C2) new C1();
19. C3 obj4 = (C3) obj2;
Which line throws ClassCastException?

解説: (JPNTest メンバーにのみ表示されます)
Given this code for the classes MyException and Test:

What is the result?

Given:

What is result?

Given:

And given the code fragment:
Book book1 = new EBook ();
Book1.readBook();
Which option enables the code to compile?

Given the code snippet from a compiled Java source file:

Which command-line arguments should you pass to the program to obtain the following output?
Arg is 2

Given:

Which statement, when inserted into line "// TODO code application logic here ", is valid change?

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

What is the result?

解説: (JPNTest メンバーにのみ表示されます)
Which of the following can fill in the blank in this code to make it compile? (Select 2 options.)

正解:B、C 解答を投票する
解説: (JPNTest メンバーにのみ表示されます)
Given:

What is the result?

Given:
public class Marklist {
int num;
public static void graceMarks(Marklist obj4) {
obj4.num += 10;
}
public static void main(String[] args) {
MarkList obj1 = new MarkList();
MarkList obj2 = obj1;
MarkList obj1 = null;
obj2.num = 60;
graceMarks(obj2);
}
}
How many objects are created in the memory runtime?

Given:

What is the result?

Given:

What is the result?

Given:

What is the result?

解説: (JPNTest メンバーにのみ表示されます)
Given:
class X {
static void m (int[] i) {
i[0] += 7;
}
public static void main (String[] args) {
int[] j = new int[1];
j[0] = 12;
m(j);
System.out.println(j[0]);
}
}
What is the result?

Given the code fragment:

What is the result?

弊社を連絡する

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

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

サポート:現在連絡