0% found this document useful (0 votes)
62 views11 pages

1Z0 808demo

This document provides information about preparing for the Oracle 1Z0-808 Java SE 8 Programmer I certification exam. It includes a link to purchase practice exam questions and answers in PDF format from Examsboost. A sample of 10 practice questions is then presented covering topics like switch statements, date formatting, inheritance, and regular expressions. The document encourages visitors to use the discount code provided to save money on Examsboost exam preparation products and services.

Uploaded by

mezzi houssem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views11 pages

1Z0 808demo

This document provides information about preparing for the Oracle 1Z0-808 Java SE 8 Programmer I certification exam. It includes a link to purchase practice exam questions and answers in PDF format from Examsboost. A sample of 10 practice questions is then presented covering topics like switch statements, date formatting, inheritance, and regular expressions. The document encourages visitors to use the discount code provided to save money on Examsboost exam preparation products and services.

Uploaded by

mezzi houssem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Boost up Your Certification Score

Oracle
1Z0-808
Java SE 8 Programmer I

For More Information – Visit link below:

https://www.examsboost.com/
Product Version
 Up to Date products, reliable and verified.
 Questions and Answers in PDF Format.

Visit us athttps://www.examsboost.com/test/1z0-808/
Latest Version: 20.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

Question: 2
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.

Visit us athttps://www.examsboost.com/test/1z0-808/
D. Its expression must evaluate to a collection of values.

Answer: B

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

Question: 4
Given the code fragment:

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.

Visit us athttps://www.examsboost.com/test/1z0-808/
Answer: C

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
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.)

A. Make the method at line n1 public.

Visit us athttps://www.examsboost.com/test/1z0-808/
B. Make the method at line n2 public.
C. Make the method at line n3 public.
D. Make the method at line n3 protected.
E. Make the method at line n4 public.

Answer: C,D

Question: 7
Given:

And given the code fragment:

Visit us athttps://www.examsboost.com/test/1z0-808/
What is the result?

A. 4W 100 Auto4W 150 Manual


B. null 0 Auto4W 150 Manual
C. Compilation fails only at line n1
D. Compilation fails only at line n2
E. Compilation fails at both line n1 and line n2

Answer: E

Question: 8
Given:

Visit us athttps://www.examsboost.com/test/1z0-808/
What is the result?

A. Compilation fails at line n1.


B. InitializedStartedInitialized
C. InitializedStarted
D. Compilation fails at line n2.

Answer: D

Question: 9
Given these two classes:

Visit us athttps://www.examsboost.com/test/1z0-808/
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 useElectricity
method.
An instance of the Customer class should never be able to tamper with or decrease the value of the
member variable bill.
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?

Visit us athttps://www.examsboost.com/test/1z0-808/
A. Option A
B. Option B
C. Option C
D. Option D

Answer: A

Question: 10

Visit us athttps://www.examsboost.com/test/1z0-808/
Given the code fragment:

What is the result?

A. Match 1
B. Match 2
C. No Match
D. A NullPointerException is thrown at runtime.

Answer: A

Visit us athttps://www.examsboost.com/test/1z0-808/
Thank You for Trying Our Product
Discount Coupon Code:
EXAMSBOOST10
For More Information – Visit link below:
http://www.examsboost.com/

FEATURES
 90 Days Free Updates
 Money Back Pass Guarantee
 Instant Download or Email
Attachment
 24/7 Live Chat Support
 PDF file could be used at any
Platform
 50,000 Happy Customer
Visit us athttps://www.examsboost.com/test/1z0-808/

Powered by TCPDF (www.tcpdf.org)

You might also like