nerdexam
Oracle

1Z0-804 · Question #119

Given: What is the result?

The correct answer is A. Compilation fails. The exception MarkOutOfBoundsException is already caught by the alternative ArrayIndexOutOfBoundsException

Exceptions and Assertions

Question

Given:

What is the result?

Exhibit

1Z0-804 question #119 exhibit

Options

  • ACompilation fails.
  • B78class java.lang.Array.IndexOutOfBoundException
  • Cclass MarkOutOfBoundException
  • Dclass java.lang.arrayIndexOutOfBoundException

How the community answered

(18 responses)
  • A
    78% (14)
  • B
    11% (2)
  • C
    6% (1)
  • D
    6% (1)

Explanation

The exception MarkOutOfBoundsException is already caught by the alternative ArrayIndexOutOfBoundsException

Topics

#exception handling#custom exceptions#compilation#exception hierarchy

Community Discussion

No community discussion yet for this question.

Full 1Z0-804 Practice