InterviewSolution
Saved Bookmarks
| 1. |
Which of the following keywords is used for throwing exception manually?(a) finally(b) try(c) throw(d) catchI had been asked this question by my school principal while I was bunking the class.I'd like to ask this question from Exception Handling topic in chapter Exception Handling of Java |
|
Answer» RIGHT choice is (c) throw Easy explanation: “throw’ KEYWORD is used for throwing exception manually in JAVA PROGRAM. User defined exceptions can be thrown too. |
|