Distinguish method overloading and method overriding
Answer Posted / sushila
method overloading is method name should be same but
signature should be different.
method overriding is method name and arguments should be
same but return type will be same or wider.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How do you join strings in java?
Is finalize() similar to a destructor?
Why super is first line in java?
Is alive method in java?
Can I use % with real numbers?
What is an empty class? What functionality does it offer in Java?
Can classes declared using the abstract keyword cab be instantiated?
Can we assign null to double in java?
What is data object example?
Why set is used in java?
Can we use catch statement for checked exceptions?
What is the method in java?
Which method cannot be overridden in java?
In the below example, what will be the output?
Does the order of public and static declaration matter in main method?