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
Which programming language is most secure?
What are the drawbacks for singleton class?
What happens if we don’t define serial version uid?
What is covariant return type?
What is the ==?
What is memory leak and how does java handle it?
What are java annotations?
Explain the private field modifier?
What does the exclamation mark mean in java?
How do constructors use this() and super()?
What are the types of methodology?
Is alive and join method in java?
Is there any case when finally will not be executed?
What is nested loop? What is dangling else condition in it?
Define how does a try statement determine which catch clause should be used to handle an exception?