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
Can we sort list in java?
What is numeric data type?
What are java threads?
What is difference between string and new string?
What is java instanceof operator?
Does treeset allow null in java?
What is http client in java?
What is null in java?
What is the use of set in java?
What are advantages of using Java?s layout managers than windowing systems?
What is variable in java?
How do weakhashmap works?
Can you give few examples of final classes defined in java api?
Is a string literal?
What is off heap memory?