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 is udp in java?
What is unicode datatype?
What is the difference between static method and instance method in Java?
When to use runnable interface vs thread class in java?
what is meant by encapsulation?
Variable of the boolean type is automatically initialized as?
What is a get method?
What is the exception hierarchy in java?
Which is better stringbuffer or stringbuilder?
what happens when a thread cannot acquire a lock on an object? : Java thread
What is meant by final class?
How is hashset defined in java?
What is java util list?
who can i handle multiple client in RMI
When should you use arraylist and when should you use linkedlist?