Rules of Exceptions in Method Overriding

After knowing Rules of "Access Specifiers in Method Overriding", let us find the "Rules of Exceptions in Method Overriding". The rule says "Subclass overridden method cannot throw more checked exceptions than that of super class method". Let us explain the rule through a program for clear and easy understanding. The following program does not compile …

Rules of Exceptions in Method Overriding Read More »