Oracle: Exam 1z0-808
Oracle: Exam 1z0-808
Oracle: Exam 1z0-808
Oracle
Exam 1z0-808
Java SE 8 Programmer I
Version: 6.0
https://certkill.com
Oracle 1z0-808 : Practice Test
Question No : 1
A. 10 : 10
B. 5 : 5
C. 5 : 10
D. Compilation fails
Answer: A
Question No : 2
Given:
https://certkill.com 2
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
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
https://certkill.com 3
Oracle 1z0-808 : Practice Test
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 {
https://certkill.com 4
Oracle 1z0-808 : Practice Test
}
int n1 = 22, n2 = 2;
System.out.print(n3);
Which two code fragments, when inserted at // insert code here, enable the code to
compile and print 12?
Answer: A,D
Explanation:
Incorrect:
Not B: circular definition of n3.
Not C: Compilation error. line Calc c = new Mid();
required: Calc
found: Mid
Not E: Compilation error. line int n3 = Calc.findMid(n1, n2);
non-static method findMid(int,int) cannot be referenced from a static context
Question No : 6
https://certkill.com 5
Oracle 1z0-808 : Practice Test
Assume that the system date is June 20, 2014. What is the result?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: A
Question No : 7
https://certkill.com 6
Oracle 1z0-808 : Practice Test
What is the result?
A. 20
B. 25
C. 29
D. Compilation fails
E. AnArrayIndexOutOfBoundsException is thrown at runtime
Answer: A
Question No : 8
Answer: D
Explanation:
java.time.temporal.UnsupportedTemporalTypeException: Unsupported field: HourOfDay
Question No : 9
https://certkill.com 7
Oracle 1z0-808 : Practice Test
✑ 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?
A. Option A
B. Option B
C. Option C
D. Option D
E. Option E
Answer: A,C
Question No : 10
https://certkill.com 8
Oracle 1z0-808 : Practice Test
Given:
The class is poorly encapsulated. You need to change the circle class to compute and
return the area instead.
Which two modifications are necessary to ensure that the class is being properly
encapsulated?
Answer: B,D
Question No : 11
https://certkill.com 9
Oracle 1z0-808 : Practice Test
What is the result?
A. 10 8 6 4 2 0
B. 10 8 6 4 2
C. AnArithmeticException is thrown at runtime
D. The program goes into an infinite loop outputting: 10 8 6 4 2 0. . .
E. Compilation fails
Answer: B
Question No : 12
Given:
Which code fragment, when inserted at line 14, enables the code to print Mike Found?
Answer: C
https://certkill.com 10