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 / rakesh
Overloading class has different returntype.
overloading comes with in class but overriding comes in two
classes.
Overloading is resolved at compiletime
Overriding is resolved at runtime.
Is This Answer Correct ? | 39 Yes | 18 No |
Post New Answer View All Answers
What is the purpose of static keyword in java?
what is meant by encapsulation?
What are the topics in advance java?
What does indexof return in java?
What is a method vs function?
What is difference between core java and java ee?
Why are generics used?
What is member in java?
Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?
What is the public method modifier?
Does java have a compiler?
What is the generic class?
What is the effect of keeping a constructor private?
How do you implement tree mirroring in java?
If goto and const is reserve words than why it is not work in java?