Answer Posted / tulasi
Overloading is the concept where there are many methods
with the same name in a class but the arguments passed
differ.Consider the example of method called
addition.Addition can be between integers,floating point
numbers etc., so same name addition is used for the various
methods of class but the parameters passed differ, it may
be integer or floating point.When the jvm checks for the
methods, the method is choosen depending upon the argument
passed.
Overriding is the concept where the method name is
same,arguments passed are also same and the return type is
also same.but the method implemented depends upon where its
defined and called
| Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
What is protected in java?
What are the two main uses of volatile in Java?
What is null in java?
What are keywords and reserved words in java?
Name and explain the types of ways which are used to pass arguments in any function in java.
Why bytecode is called bytecode?
How do you sort a set in java?
What is the difference between arraylist and hashset in java?
What are the high-level thread states in java programming?
Can we create an object of private class?
Why is it called a string?
How to make a non daemon thread as daemon?
Explain, java is compatible with all servers but not all browsers?
When will you define a method as static?
What is class forname?