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
 781  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.

      Modified On Mar-28-2018 12:41:14 AM

Answer

NEWSLETTER

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