1Z0-808 Dumps For Guaranteed Preparation Material PDF
1Z0-808 Dumps For Guaranteed Preparation Material PDF
1Z0-808 Dumps For Guaranteed Preparation Material PDF
Oracle
1Z0-808
Java SE 8 Programmer I
Visit us athttps://www.certschief.com/exam/1z0-808/
Question: 1
Given:
A. 200.0 : 100.0
B. 400.0 : 200.0
C. 400.0 : 100.0
D. Compilation fails.
Answer: C
Question: 2
Given the following segment of code :
Which two statements, if either were true, would make the code compile? (Choose two.)
Visit us athttps://www.certschief.com/exam/1z0-808/
F. Motorcycle is an interface that implements the Vehicle class.
Answer: C,E
Question: 3
Given the code fragment:
Answer: D
Question: 4
Given the code fragment:
A. Sum is 600
B. Compilation fails at line n1.
C. Compilation fails at line n2.
D. A ClassCastException is thrown at line n1.
E. A ClassCastException is thrown at line n2.
Answer: C
Visit us athttps://www.certschief.com/exam/1z0-808/
Question: 5
What is the name of the Java concept that uses access modifiers to protect variables and hide them
within a class?
A. Encapsulation
B. Inheritance
C. Abstraction
D. Instantiation
E. Polymorphism
Answer: A
Explanation:
Using the private modifier is the main way that an object encapsulates itself and hide data from the
outside world.
Question: 6
Given the code fragment:
Which two modifications, made independently, enable the code to compile? (Choose two.)
Answer: C,D
Visit us athttps://www.certschief.com/exam/1z0-808/
Question: 7
Given:
Answer: C
Question: 8
fragment:
Visit us athttps://www.certschief.com/exam/1z0-808/
Which two modifications should you make so that the code compiles successfully? (Choose two.)
A. Option A
B. Option B
C. Option C
D. Option D
E. Option E
Answer: A,C
Question: 9
Given the following two classes:
Visit us athttps://www.certschief.com/exam/1z0-808/
How should you write methods in the ElectricAccount class at line n1 so that the member variable
bill is always equal to the value of the member variable kwh multiplied by the member variable rate?
Any amount of electricity used by a customer (represented by an instance of the customer class)
must contribute to the customer's bill (represented by the member variable bill) through the method
use Electricity method. An instance of the customer class should never be able to tamper with or
decrease the value of the member variable bill.
Visit us athttps://www.certschief.com/exam/1z0-808/
A. Option A
B. Option B
C. Option C
D. Option D
Answer: A
Question: 10
Given the code fragment:
Visit us athttps://www.certschief.com/exam/1z0-808/
What is the result?
A. Match 1
B. Match 2
C. No Match
D. A NullPointerException is thrown at runtime.
Answer: B
Visit us athttps://www.certschief.com/exam/1z0-808/
For More Information - Visit:
https://www.certschief.com/
20% Discount Coupon Code:
20off2019
Page | 1
Visit us athttps://www.certschief.com/exam/1z0-808/
http://www.certschief.com/exam/0B0-104/
Powered by TCPDF (www.tcpdf.org)