InterviewSolution
Saved Bookmarks
| 1. |
Which of these methods return description of an exception?(a) getException()(b) getMessage()(c) obtainDescription()(d) obtainException()I have been asked this question in a job interview.Asked question is from Creating Exceptions topic in portion Exception Handling of Java |
|
Answer» CORRECT answer is (B) getMessage() Easy explanation: getMessage() returns a description of the EXCEPTION. |
|