What is the difference between overloading and overriding a
function?
Answer Posted / suganthi
Over Loading : when two or methods share the same name but
paramater declaration are diffierent with in a class.
(ex:Compile time polymorpism)
Over ridding: when two or methods share the same name but
paramater declaration are also same in different classes.
(ex:run time polymorpism)
| Is This Answer Correct ? | 17 Yes | 3 No |
Post New Answer View All Answers
Why do we need array in java?
Is a method a function?
Is integer a class?
What is lifetime variable?
Differentiate between a constructor and a method? Can we mark constructors final?
Can you call a method in a method?
How do you detect memory leaks?
What is array size in java?
What is the size of string?
What is a method signature java?
What are local variables?
What is the function of static in java?
What is module with example?
Write a program to print 15 random numbers using foreach of java 8?
What are the differences between this and super keyword?