InterviewSolution
Saved Bookmarks
| 1. |
Which is the exception handler for the exceptions of downcasting?(a) CastException(b) ClassCastingExeption(c) ClassCasting(d) ClassCastExceptionThe question was asked during an online interview.Enquiry is from Downcasting topic in chapter Default Arguments vs Overloading, Upcasting and Downcasting of Object Oriented Programming |
|
Answer» RIGHT ANSWER is (d) ClassCastException Easy explanation - The exception handler for the exceptions PRODUCED during the DOWNCASTING exception. This handler can be called during runtime to handle any exception thrown. |
|