Back to Top

Monday 16 January 2012

JAVA : What is Method Overriding?


   When a method in subclass has the same name and type signature as a method in its superclass, the the method in the subclass is called to override the method in the superclass. When an overridden method is called from within a subclass, it will always refer to the version of that method defined by the subclass. The version of the method defined by the superclass will be hidden.

2 Responses to “ JAVA : What is Method Overriding? ”

java67 said...
29 August 2012 at 10:30

Another major difference is speed, overridden method is slower as said on Difference between method overloading and overriding in Jav


Venkatesh CS said...
29 May 2019 at 11:31

Method overriding concept are understood me.Thanks
Java Training with Placements


Post a Comment

Popular Posts

Subscribe via Email
Subscribe Java Interview Questions via Email
All Rights Reserved JAVA INTERVIEW QUESTIONS | Privacy Policy | Anijit Sarkar