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
How do you compare two strings lexicographically?
What is hash table in java?
What is meant by anonymous class?
Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?
How do you clear a list in java?
What does i ++ mean in Java?
Under what conditions is an object’s finalize() method invoked by the garbage collector?
What flag up means?
Can we create an object of static class in java?
What is generic class?
Do we need to manually write Copy Constructor?
Tell us something about set interface.
When does a class need a virtual destructor?
Is sizeof a preprocessor?
What are the elements of java?