1z1-809 Java SE 8 Programmer IIテスト実用的な情報CertJukenは頼りが強い上にサービスもよくて、もし1z1-809試験に失敗したら全額で返金いたしてまた一年の無料なアップデートいたします。 Oracle Java SE 8 Programmer II 認定 1z1-809 試験問題 (Q92-Q97):質問 # 92
Given the code fragment:
What is the result?
A. 0 2 4
B. 2 4
Compilation fails.
C. 0 2 4 6
正解:A
質問 # 93
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
A. java MyFile 1 3 2 2
B. java MyFile 2 1 2
C. java MyFile 0 1 2 3
D. java MyFile 1 2 2 3 4
正解:A
質問 # 94
Given:
public class Counter {
public static void main (String[ ] args) {
int a = 10;
int b = -1;
assert (b >=1) : "Invalid Denominator";
int = a / b;
System.out.println (c);
}
}
What is the result of running the code with the -ea option?
A. 0
B. 1
C. A compilation error occurs.
D. An AssertionError is thrown.
正解:D
質問 # 95
Which two statements are true for a two-dimensional array?
A. All methods of the class Object may be invoked on the two-dimensional array.
B. At declaration time, the number of elements of the array in each dimension must be specified.
C. Using a row by column convention, each row of a two-dimensional array must be of the same size.
D. It is implemented as an array of the specified element type.
正解:A、D
質問 # 96
Given the code fragment:
Assume that the value of now is 6:30 in the morning.
What is the result?