InterviewSolution
Saved Bookmarks
| 1. |
Which among the following is true for class exceptions?(a) Only base class can give rise to exceptions(b) Only derived class can give rise to exceptions(c) Either base class or derived class may produce exceptions(d) Both base class and derived class may produce exceptions |
|
Answer» Correct answer is (d) Both base class and derived class may produce exceptions For explanation: It’s not mandatory that either base class or derived class can give rise to exceptions. The exceptions might get produced from any class. The exceptions depends on code. |
|