《Oracle Java SE 8 Programmer I 1z0-808题库》.pdf
文本预览下载声明
s@lm@n
Oracle
Exam 1z0-808
Java SE 8 Programmer I
Version: 6.0
[ Total Questions: 236 ]
买题库 QQ:860424807
Oracle 1z0-808 : Practice Test
Question No : 1
Given the code fragment:
What is the result?
A. 10 : 10
B. 5 : 5
C. 5 : 10
D. Compilation fails
Answer: A
Question No : 2
Given:
2
买题库 QQ:860424807
Oracle 1z0-808 : Practice Test
What is the result?
A. box
B. nbo
C. bo
D. nb
E. An exception is thrown at runtime
Answer: E
Question No : 3
Which three are advantages of the Java exception mechanism?
A. Improves the program structure because the error handling code is separated from the
normal program function
B. Provides a set of standard exceptions that covers all the possible errors
C. Improves the program structure because the programmer can choose where to handle
exceptions
D. Improves the program structure because exceptions must be handled in the method in
which they occurred
E. Allows the creation of new exceptions that are tailored to the particular program being
created
Answer: A,C,E
Question No : 4
Given the code fragment:
3
买题库 QQ:860424807
Oracle 1z0-808 : Practice Test
What is the result?
A. Jesse 25
Walter 52
B. Compilation fails only at line n1
C. Compilation fails only at line n2
D. Compilation fails at both line n1 and line n2
Answer: D
Question No : 5
Given:
class Mid {
public int findMid(int n1, int n2) {
return (n1 + n2) / 2;
}
显示全部