What is the difference between overloading and overriding a
function?
Answer Posted / ankur dhoot
In overloading two function should have different signature
but overriding show have exactly same signature.
Overloading generally happens in same class but overriding
mandatory requires super and sub class to happen.
Compiler decides overloading at compile time but overriding
is detected at run time.
Overloading is called static polymorphism while overriding
is called dynamic polymorphism.
Is This Answer Correct ? | 53 Yes | 6 No |
Post New Answer View All Answers
Where pragma is used?
What is an 8 bit word?
What is constant in programming?
what is the purpose of "virtual"?
What is collections framework?
What was java originally called?
What does substring mean?
Explain a few methods of overloading best practices in java?
Explain inner classes ?
Is call by reference possible in java?
How do I get 64 bit java?
Do I need to import java.lang package any time? Why?
What is the relationship between clipping and repainting under awt?
What does the “final” keyword mean in front of a variable? A method? A class?
When will you define a method as static in Java?