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 you run java program without main method?
What are the basic control structures?
What is JFC?
What are different types of expressions?
What is comparator in java?
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?
What’s the difference between constructors and other methods?
What is a class object?
What is the numeric promotion?
What is the public field modifier?
What is use of static method?
How can we create objects if we make the constructor private ?
How does finally block differ from finalize() method?
What is variable and rules of variable?
how can you catch multiple exceptions in java?