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
How to set the permissions to a file in java?
Which one will take more memory: an int or integer?
What are the Class Libraries ?
What is difference between final and finally in java?
How to find the largest value from the given array.
Explain the importance of finally block in java?
What are different types of classloaders?
What is %02d?
What is a numeric format?
When should you make a function static?
What is regex in java?
What is a protected void?
Which class contains a method: cloneable or object?
How many decimal digits is 64 bit?
Explain about narrowing conversion in java?