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

Naviya Nair said...
24 October 2016 at 15:19

I have read your blog its very attractive and impressive. I like it your blog.

Java Training in Chennai Java Training in Chennai | Core Java Training in Chennai

Online Java Training Java 8 Online Training | Java J2EE Online Training | JavaEE Training Institute in Chennai Java Training Institutes

Java Training Institutes in Chennai Java Training in Chennai

Post a Comment

Popular Posts

Subscribe via Email
Subscribe Java Interview Questions via Email
All Rights Reserved JAVA INTERVIEW QUESTIONS | Privacy Policy | Anijit Sarkar
blog links Web Directory Academics Blogs