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 size_t?

721


Is java a security risk?

797


What are the different types of sorting in java?

736


What is the difference between ArrayList and Vector? which one is better in Java

829


What is preflight request?

731


whatis Home interface and Remoteinterface? with example?

1765


Why is the main method declared static?

852


Explain the significance of listiterator.

779


Which data type is a class in java?

769


What are the rules for naming an array?

732


What restrictions are placed on method overriding?

869


How do you clear a method in java?

743


Is singleton a bad practice?

808


Can a static method be final?

772


What is the use of singleton class?

719