CAN SUBCLASS OVERRIDING METHOD DECLARE AN EXCEPTION IF PARENT CLASS METHOD DOESN'T THROW AN EXCEPTION ?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
 665  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    Can subclass overriding method declare an exception if parent class method doesn't throw an exception ?

    Yes but only unchecked exception not checked.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!