Given:
What is the result?
Options:
Option A
Option B
Option C
Option D
Answer:
Given the code fragment:
Match 1
Match 2
No Match
A NullPointerException is thrown at runtime.
Which three statements are true about exception handling? (Choose three.)
Only unchecked exceptions can be rethrown.
All subclasses of the RuntimeException class are not recoverable.
The parameter in a catch block is of Throwable type.
All subclasses of the RuntimeException class must be caught or declared to be thrown.
All subclasses of the RuntimeException class are unchecked exceptions.
All subclasses of the Error class are not recoverable.
C B A
C
A B C
Compilation fails at line n1 and line n2
Site Secure
TESTED 09 Mar 2026
Copyright © 2014-2026 CramKey. All Rights Reserved