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
What is the difference between stringbuffer and stringbuilder class?
What is the difference between the direct buffer and non-direct buffer in java?
Why can we not override static method?
What is type safety in java?
What is ascii format?
What is the final class?
Which variables are stored in stack?
What is the use of default method in interface in java?
How many types of literals are there in JAVA?
How are this() and super() used with constructors in java programming?
Which category the java thread do fall in?
Define an abstract class with reference to java.
Explain constructors and types of constructors in java.
Which sort is best in java?
What is meant by nested loop?