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
Options
- ACompilation fails.
- B78class java.lang.Array.IndexOutOfBoundException
- Cclass MarkOutOfBoundException
- Dclass java.lang.arrayIndexOutOfBoundException
How the community answered
(18 responses)- A78% (14)
- B11% (2)
- C6% (1)
- D6% (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.
