what is overloading in java?
Answer Posted / jephin daviss
Overloading means that the same operator, method maybe used
for different purposes.
It is part of the OOP concept 'Polymorphism'.
1)Method overloading:Methods with same name, but different
argument types and number of arguments.
2)Operator overloading: Same operator can be used for
different ways, ex:'+' can be used for addition and for
concatenation.
3)Constructor overloading: We can define two constructors
for a same class, ie with same name, but difference in
argument types and number of arguments.
| Is This Answer Correct ? | 10 Yes | 7 No |
Post New Answer View All Answers
how to create multithreaded program? : Java thread
Is Java a dying language?
What are the two environment variables that must be set in order to run any java programs?
How many decimal digits is 64 bit?
Why is method overloading not possible by changing the return type in java?
What is difference overloading and overriding?
Why can we not override static method?
what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread
How do I find and replace in word?
What are the different types of inheritance in java?
Is arraylist ordered?
Can java list contain duplicates?
What are decalarations?
What is java in detail?
Difference between method overloading and method overriding in java ?