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
What is the vector class in java programming?
Can we access instance variables within static methods ?
What is native method in java?
How many digits can a float hold?
What is Hierarchy of exception?
What do you mean by order of precedence and associativity?
What is protected in java?
What is mean by collections in java?
What is the meaning of course?
What is difference between classpath and path variables in java?
What does java ide mean?
What is static import in java?
What is mean by exception?
What is linkedlist in java?
What is thread life cycle?