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


Please Help Members By Posting Answers For Below Questions

What is the purpose of static keyword in java?

707


what is meant by encapsulation?

828


What are the topics in advance java?

708


What does indexof return in java?

737


What is a method vs function?

742


What is difference between core java and java ee?

661


Why are generics used?

721


What is member in java?

687


Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?

749


What is the public method modifier?

735


Does java have a compiler?

777


What is the generic class?

706


What is the effect of keeping a constructor private?

677


How do you implement tree mirroring in java?

798


If goto and const is reserve words than why it is not work in java?

1751