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 private method static?
What is ph and buffers?
What is string builder in java?
how would you implement a thread pool? : Java thread
What will be the default values of all the elements of an array defined as an instance variable?
What is the difference between synchronized and synchronized block?
explain autoboxing in java?
What is string syntax?
define the terminology association.
What do you mean by platform independence? What is an interface?
What is an image buffer?
When is the finally clause of a try-catch-finally statement executed?
What modifiers may be used with a top-level class?
What is immutable in java?
What is runtime polymorphism or dynamic method dispatch?