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

Given:

What is the result?

Given the code fragment:

What is the result?

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 解答を投票する
Consider following interface.

Which of the following will create instance of Runnable type?

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

What is the result?

Which two initialization statements are valid? (Choose two.)

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

And given the requirements:
- If the value of the qty variable is greater than or equal to 90,
discount = 0.5
- If the value of the qty variable is between 80 and 90, discount = 0.2 Which two code fragments can be independently placed at line n1 to meet the requirements?

正解:D、E 解答を投票する
Given:
package p1;
public interface DoInterface {
void method1(int n1); // line n1
}
package p3;
import p1.DoInterface;
public class DoClass implements DoInterface {
public DoClass(int p1) { }
public void method1(int p1) { } // line n2
private void method2(int p1) { } // line n3
}
public class Test {
public static void main(String[] args) {
DoInterface doi= new DoClass(100); // line n4
doi.method1(100);
doi.method2(100);
}
}
Which change will enable the code to compile?

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

弊社を連絡する

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

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

サポート:現在連絡