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
How to do encapsulation in java?
What is token in java?
what is the swingutilities.invokelater(runnable) method for? : Java thread
Can I override protected method in java?
What 5 doubled?
What is class and object in java?
What are the different types of inner classes?
What is meant by polymorphism?
Which sort is best in java?
When does an object becomes eligible for garbage collection in java?
What is mean by exception?
Can we convert integer to string in java?
What is data movement?
Explain the importance of throwable class and its methods?
What is the final class?