1Z0 808 Demo

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Questions & Answers PDF Page 1

Oracle
1Z0-808 Exam
Oracle Java SE 8 Programmer I

https://www.pass4success.com/1Z0-808.html
Questions & Answers PDF Page 2

Version: 19.0

Question: 1

Given:

What is the result?

A. 200.0 : 100.0
B. 400.0 : 200.0
C. 400.0 : 100.0
D. Compilation fails.

Answer: C
Explanation:

Question: 2

https://www.pass4success.com/1Z0-808.html
Questions & Answers PDF Page 3

Which statement is true about the switch statement?

A. It must contain the default section.


B. The break statement, at the end of each case block, is optional.
C. Its case label literals can be changed at runtime.
D. Its expression must evaluate to a collection of values.

Answer: B
Explanation:

Question: 3

Given the code fragment:

What is the result?

A. May 04, 2014T00:00:00.000


B. 2014-05-04T00:00: 00.000
C. 5/4/14T00:00:00.000
D. An exception is thrown at runtime.

Answer: D
Explanation:

Question: 4

Given the code fragment:

https://www.pass4success.com/1Z0-808.html
Questions & Answers PDF Page 4

What is the result?

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
Explanation:

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.
References:

https://www.pass4success.com/1Z0-808.html
Questions & Answers PDF Page 5

Thank You for trying 1Z0-808 PDF Demo

To try our 1Z0-808 practice exam software visit link below

https://www.pass4success.com/1Z0-808.html

Start Your 1Z0-808 Exam Preparation

[Limited Time Offer] Use Coupon “20OFF” for special 20% discount on
your purchase. Test your 1Z0-808 preparation with actual exam
questions.

https://www.pass4success.com/1Z0-808.html

You might also like