explain about method overloading and method overriding with
difficult examples
Answer Posted / andrea
overloading
two or more methods will have same name but different
arguments. it will be in same class.
overriding
two or more methods will have same name and same
number of arguments but in different classes
Is This Answer Correct ? | 5 Yes | 4 No |
Post New Answer View All Answers
When do you call copy constructor?
What will be the default values of all the elements of an array defined as an instance variable?
Explain about assignment statement?
Which collection is best for sorting in java?
What is a method in coding?
what methods would you overwrite in java.lang.object class?
What is floor math?
Why vector is used in java?
What is serialversionuid?
What is multithreading and its advantages?
What is hashing principle in java?
I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?
Differece between class and generic class?
For class CFoo { }; what default methods will the compiler generate for you>?
How to access arraylist elements in java?