Home » JAVA Programming » Exceptions » Question
  1. Which of the following should be true of the object thrown by a thrown statement?
    1. Should be assignable to Error type
    2. Should be assignable to Throwable type
    3. Should be assignable to Exception type
    4. Should be assignable to String type
    5. None of these
Correct Option: B

The throw statement should be assignable to the throwable type. Throwable is the super class of all exceptions.



Your comments will be displayed only after manual approval.