ORACLE · 1Z0-808

Oracle 1Z0-808 Exam Practice Questions

234 questionsPDF by emailUpdated September 2026

US$39

Try 10 questions free

Card, Apple Pay or Google Pay. Your PDF is sent by email as soon as you check out.

Pass or your money backFail the exam after using this pack and we refund it. How the guarantee works
Category:
TRY BEFORE YOU BUY

Three of the 234 questions in this pack

Question 1

Given:

What is the result?

Exhibit for question 1

  1. 200.0 : 100.0
  2. 400.0 : 200.0
  3. 400.0 : 100.0
  4. Compilation fails.
Show answer and explanation

Correct answer: C. 400.0 : 100.0

The code creates a Product object with price 200. The updatePrice method receives the product object by reference and the newPrice value 100. Inside updatePrice, price is first set to 100 * 2 = 200, then product.price is incremented by this local price variable: product.price = 200 + 200 = 400. The method prints prt.price (400.0) concatenated with newPrice (100.0), producing '400.0 : 100.0'. Since objects are passed by reference in Java, the modifications to the product object persist after the method call.

Why the other options are wrong

  • A. This ignores that price is doubled inside updatePrice to 200 before being added to product.price.
  • B. This would result from incorrectly assuming newPrice is also doubled or added twice to the product price.
  • D. The code is syntactically valid Java with no compilation errors.

Question 2

Which statement is true about the switch statement?

  1. It must contain the default section.
  2. The break statement, at the end of each case block, is optional.
  3. Its case label literals can be changed at runtime.
  4. Its expression must evaluate to a collection of values.
Show answer and explanation

Correct answer: B. The break statement, at the end of each case block, is optional.

optional. The break statement at the end of each case block is optional in Java switch statements. When omitted, execution falls through to the next case (fall-through behavior). The default section is not required, a switch can function without it. Case label literals must be compile-time constants and cannot change at runtime. The switch expression must evaluate to a single value (or collection in enhanced switch), not multiple values.

Why the other options are wrong

  • A. The default section is optional; a switch statement can be valid without it.
  • C. Case label literals are compile-time constants and cannot be modified at runtime.
  • D. The switch expression evaluates to a single value, not a collection of values.

Question 3

Given the code fragment:

What is the result?

Exhibit for question 3

  1. May 04, 2014T00:00:00.000
  2. 2014-05-04T00:00: 00.000
  3. 5/4/14T00:00:00.000
  4. An exception is thrown at runtime.
Show answer and explanation

Correct answer: D. An exception is thrown at runtime.

The code attempts to chain methods on the result of LocalDate.parse(), but LocalDate.parse() returns a LocalDate object, which does not have a .format() method that accepts a DateTimeFormatter parameter in this way. LocalDate lacks time components, so formatting with DateTimeFormatter.ISO_DATE_TIME (which includes time) would require conversion to a LocalDateTime or ZonedDateTime first. Additionally, the chaining syntax shown attempts to call .format() directly on the parse result without proper method availability, causing a compilation or runtime error. The code as written cannot execute successfully.

Why the other options are wrong

  • A. This output format does not match ISO_DATE_TIME pattern and the code would not compile/run to produce any output.
  • B. While this looks like a plausible ISO format output, the code throws an exception because LocalDate does not support formatting with ISO_DATE_TIME formatter directly.
  • C. This is not the ISO_DATE_TIME format pattern, and the code fails before any output could be generated.

See all 10 free questions Get the full pack, US$39

234 practice questions for Oracle Java SE 8 Programmer I (1Z0-808), with full explanations.

Every question comes with the correct answer, the reasoning behind it, and a short note on why each wrong option is wrong. Work through it once with the answers, then again with the questions-only copy under exam conditions.

  • 234 questions mapped to the 1Z0-808 exam topics
  • Answers and explanations for every question, including the wrong options
  • A questions-only PDF for timed practice runs
  • Instant delivery by email the moment you check out
  • Free monthly updates for as long as the exam is live
  • Pass or your money back

A failed 1Z0-808 attempt costs US$245. This pack is US$39, paid once.

Try 10 questions free before you buy.

Last updated September 2026 · 234 questions

What makes the 1Z0-808 hard

1Z0-808 is the longest-serving Java certification exam Oracle still sells. It launched with Java 8 in 2014, survived the retirements that took out the Java 11 two-exam path, and remains the only associate-level Java exam: the 11, 17 and 21 tracks all start at Professional. That is why it still has a steady stream of candidates, especially in markets where employers ask for an OCA. The format is 56 questions in 120 minutes with a 65% pass mark, and the questions are almost entirely code listings with a “what is the result” stem.

The exam topics are the Java 8 language at associate depth: class structure, the main method, packages and imports; primitives and wrappers, object references, operator precedence, promotion and casting, StringBuilder and String methods; if-else, switch and the ternary; one and two-dimensional arrays and ArrayList; loops with break and continue; overloading, static versus instance, varargs, constructors, access modifiers and pass-by-value semantics; polymorphism, casting, super and this, abstract classes and interfaces, and default methods; checked and unchecked exceptions, try-catch-finally, multi-catch and common runtime exceptions; and selected classes from the Java API including String, StringBuilder, the java.time date and time API, ArrayList, and a first look at lambda expressions with Predicate. The tricky questions are on evaluation order, integer promotion and what happens when a finally block returns.

About the exam

1Z0-808 (Java SE 8 Programmer I) earns the Oracle Certified Associate, Java SE 8 Programmer credential and is the prerequisite for the Java SE 8 Programmer II exam. It covers Java basics, data types, operators and decision constructs, arrays, loops, methods and encapsulation, inheritance, exceptions and selected classes from the Java API. No prerequisites.

Exam topics

  • Java basics and working with data types
  • Operators, decision constructs and loops
  • Arrays and ArrayList
  • Methods and encapsulation
  • Inheritance and polymorphism
  • Exceptions
  • Selected classes from the Java API, including java.time and lambdas

Oracle does not publish weightings for these topics. 56 multiple-choice questions, 120 minutes, passing score 65%, US$245 per attempt, delivered through Oracle MyLearn online proctored or Pearson VUE, certification does not expire.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Questions before you buy

What do I get when I buy the Oracle 1Z0-808 pack?

234 practice questions as a PDF, each with the correct answer, a full explanation and a note on why the other options are wrong, plus a separate questions-only PDF for timed practice.

How quickly do I receive it?

Your PDF is prepared and sent to your email address after checkout, and you get a confirmation as soon as it is on its way.

Is there a free sample?

Yes. Ten questions from this pack, with answers and explanations, are free on this page and as a PDF, so you can judge the quality before you pay.

Are updates included?

Yes. The pack is updated every month for as long as the exam is live, and updates are free for everyone who has bought it.

What if I fail the exam?

We refund the pack. Sit the exam 7 to 30 days after buying, then send your official score report within 7 days of the exam date, as set out in the refund policy.

Can I share it with colleagues?

Each purchase is licensed to one person. For a team, school or training organisation, email support@certstash.com for a licence that fits.