Editorial / Best Answer
bharathnav
"Suppose a Super Class method throws an exception and this method is Overriden in the subclass with no exception. Now if you create a super class reference that has a subclass object. This throws a compile
Latest Answer: Because at run time, the super class will compiled first, so it will gives the run time error. ..."
if the object has been created to the subclass and both the methods are non static then the method we overriden doesn't produce any errors or exceptions.
Overriding Methods
Profile Answers by vishalanand_154 Questions by vishalanand_154
Questions by vishalanand_154
Editorial / Best Answer
bharathnavProfile Answers by bharathnav Questions by bharathnav
if the object has been created to the subclass and both the methods are non static then the method we overriden doesn't produce any errors or exceptions.
Related Answered Questions
Related Open Questions