Oracle 1Z0-808 Exam (page: 6)
Oracle Java SE 8 Programmer I
Updated on: 01-Sep-2025

Viewing Page 6 of 49

Given:



What is the result?

  1. 1
  2. 1
  3. 2
  4. Compilation fails
  5. The loop executes infinite times

Answer(s): E



Which two are Java Exception classes?

  1. SercurityException
  2. DuplicatePathException
  3. IllegalArgumentException
  4. TooManyArgumentsException

Answer(s): A,C



Given:



What is the result?

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

Answer(s): C



Given the code fragment:

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

Answer(s): A,C

Explanation:

Add throws clause in both printFileContent and main.



A method is declared to take three arguments. A program calls this method and passes only two arguments.
What is the results?

  1. Compilation fails.
  2. The third argument is given the value null.
  3. The third argument is given the value void.
  4. The third argument is given the value zero.
  5. The third argument is given the appropriate falsy value for its declared type.
  6. An exception occurs when the method attempts to access the third argument.

Answer(s): A



Viewing Page 6 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