What is the difference between overloading and overriding a
function?
Answer Posted / ankit
IN overloading the function are used in same class, they
have different parameters each time we define the funtion,
and perform the same task.
overriding is used in diferent class with same parameters.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the base class for error and exception?
What is method in java with example?
How to retrieve data from database in java using arraylist?
What about anonymous inner classes in java?
How can we break singleton in java?
What is polymorphism in java? What are the kinds of polymorphism?
Is overriding possible in java?
How can we create a synchronized collection from given collection?
How do you detect memory leaks?
Objects or references which of them gets garbage collected?
What are the application of stack?
Can we call the constructor of a class more than once for an object?
If an object is garbage collected, can it become reachable again?
When throws keyword is used?
what is method reference in java 8?