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
Can we define static methods inside interface?
What are the wrapped, classes?
Why does java not support operator overloading?
what is synchronization and why is it important? : Java thread
Are private methods final?
how to deploy apache tomcat server to weblogic server in java
What are static methods?
How does hashset works in java?
What is ctrl m character?
What is internal iteration in java se 8?
Is java a virus?
Which package has light weight components?
What class allows you to read objects directly from a stream in java programming?
What is string english?
Can we extend private class in java?