Difference between overloading and Overriding. <Giving a
confusing example to test the concept.>
(also asked in PA Consultancy Group,iflex,Value
chain,IBM,CTS,Accenture, Tarang>

Answer Posted / ganga

using same methodname with different signatures is known as
overloading where as
changing the definition of the parentclass in chidclass is
known as overridding.

Is This Answer Correct ?    7 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is r * in math?

752


Is null an object in java?

806


What is a methodologist?

793


What is the dot operator?

775


Can we assign the reference to this variable?

749


How do you compare characters in java?

744


What is the final keyword denotes?

886


What is synchronization and why is it important in java programming?

720


which class is the wait() method defined in? : Java thread

733


What is runtime polymorphism or dynamic method dispatch?

779


Explain the difference between an object-oriented programming language and object-based programming language?

777


Does it matter in what order catch statements for filenotfoundexception and ioexception are written?

740


What is assembly used for?

787


What is user defined exception in Java?

855


What do you mean by a JVM?

841