InterviewSolution
Saved Bookmarks
| 1. |
Which of the following should be true of the object thrown by a thrown statement?(a) Should be assignable to String type(b) Should be assignable to Exception type(c) Should be assignable to Throwable type(d) Should be assignable to Error type |
|
Answer» The correct choice is (c) Should be assignable to Throwable type The best I can explain: The throw statement should be assignable to the throwable type. Throwable is the super class of all exceptions. |
|