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 are the two ways of implementing multi-threading in java?

820


How do you use nextline in java?

509


What is the method to declare member of a class static?

539


How is Object Oriented Programming different from Procedure Oriented Programming?

596


What is a Presistent Object?

647






What is a void in java?

585


What is a prefix function.write down a code to compute prefix function.

542


Can you access non static variable in static context?

561


Can a class extends itself in java?

531


Is int primitive data type?

509


Why map is used in java?

585


Write an algorithm for quick sort?

617


What are loops in java?

554


Why stringbuilder is not thread safe in java?

578


Can we use static class instead of singleton?

582