Exception in Inheritance
- 5th Dec 2013
- 1
- 24338
- exception in inheritance exception inheritance in java exception inheritance with example Inheritance in exceptions parent and child class exceptions in java
Case 1 : Parent class throwing any exception(checked/unchecked) a) Exception thrown in the parent class’s method is checked type. If the exception is thrown by the parent’s class method then child class’s overridden method may not be required to throw the exception (not mandatory but it can throw) class Parent{ void […]