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
What are the two ways of implementing multi-threading in java?
How do you use nextline in java?
What is the method to declare member of a class static?
How is Object Oriented Programming different from Procedure Oriented Programming?
What is a Presistent Object?
What is a void in java?
What is a prefix function.write down a code to compute prefix function.
Can you access non static variable in static context?
Can a class extends itself in java?
Is int primitive data type?
Why map is used in java?
Write an algorithm for quick sort?
What are loops in java?
Why stringbuilder is not thread safe in java?
Can we use static class instead of singleton?