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 create a base64 decoder in java8?
Can we override the private methods?
What are new features introduced with java 8 ?
How would overload a function based on return type?
How to sort elements in a parallel array in java?
What is the difference between equals() and?
Does sprintf add a null terminator?
Define how does a try statement determine which catch clause should be used to handle an exception?
What is the use of inner class?
What is a null check?
What is the lifetime and scope of a variable?
Can It is possible to synchronize the constructor of a Java Class?
What is functional interface in javatpoint?
What is an example of a boolean?
What is main string [] args?