Oracle 1Z0-808 Exam (page: 2)
Oracle Java SE 8 Programmer I
Updated on: 25-Aug-2025

Viewing Page 2 of 49

Given the code fragment:

  1. Option A
  2. Option B
  3. Option C
  4. Option D

Answer(s): A



Given the code fragment:




What is the result?

  1. 20
  2. 25
  3. 29
  4. Compilation fails
  5. AnArrayIndexOutOfBoundsException is thrown at runtime

Answer(s): A



Given the code fragment:

What is the result?

  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.

Answer(s): D

Explanation:

java.time.temporal.UnsupportedTemporalTypeException: Unsupported field: HourOfDay



Given the code fragment:

  1. Option A
  2. Option B
  3. Option C
  4. Option D
  5. Option E

Answer(s): A,C



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?

  1. Remove the area field.
  2. Change the getArea( ) method as follows:
    public double getArea ( ) { return Match.PI * radius * radius; }
  3. Add the following method:
    public double getArea ( ) {area = Match.PI * radius * radius; }
  4. Change the cacess modifier of the SerRadius ( ) method to be protected.

Answer(s): B,D



Viewing Page 2 of 49



Share your comments for Oracle 1Z0-808 exam with other users:

Mchal 7/20/2023 3:38:00 AM

some questions are wrongly answered but its good nonetheless
POLAND


Merry 7/30/2023 6:57:00 AM

good questions
Anonymous