최신 Oracle Java Platform 1z1-815 무료샘플문제:
1. Which three are valid replacements for foo so that the program will compiled and run?
public class ForTest {
public static void main(String[] args) {
int[] arrar = {1,2,3};
for ( foo ) {
}
}
}
A) int i = 0; i < 1; i++
B) ;;
C) int i: array
D) ; i < 1; i++
E) ; i < 1;
2. Given the code fragment:
What is the result?
A) false true true
B) false true false
C) false false true
D) true false false
3. Given:
What is the result?
A) 6=(x+y)=6
B) 42=(x+y)=6
C) An exception is thrown at runtime.
D) 42=(x+y)=42
E) 6=(x+y)=42
4. Which describes an aspect of Java that contributes to high performance?
A) Java automatically parallelizes code execution.
B) Java has a library of built-in functions that can be used to enable pipeline burst execution.
C) Java monitors and optimizes code that is frequently executed.
D) Java prioritizes garbage collection.
5. Given:
What is the result?
A) True null
B) Compilation fails
C) A NullPointerException is thrown at runtime
D) True false
질문과 대답:
질문 # 1 정답: A,B,C | 질문 # 2 정답: B | 질문 # 3 정답: E | 질문 # 4 정답: D | 질문 # 5 정답: D |