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
What are the advantages of defining packages in java?
Describe 2 different ways to concatenate two strings.
What is a java predicate?
If an application has multiple classes in it, is it okay to have a main method in more than one class?
What is the purpose of finalization in java programming?
How do I get 64 bit java?
How many arguments can be passed to main ()?
Are arrays immutable in java?
What is the size of int in 64-bit jvm?
What is difference between length and length() method in java ?
What is the difference between member variables initialization and assignment in a constructor?
Is java free for commercial?
Can we override constructors in java?
How do you escape sequences in java?
Mention the default values of all the elements of an array defined as an instance variable.