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 importance of main method in Java?
What is the largest number a double can hold?
How to split arraylist elements in java?
What is jee6?
Tell me a few examples of final classes defined in Java API?
When arithmeticexception is thrown?
Can the garbage collection be forced by any means?
Explain about the security aspect of java?
How many decimal digits is 64 bit?
What do you mean by an object in java?
What is array list in java?
How many return statement are allowed in a function?
What is nullpointerexception in java?
What is the history of java?
Write an algorithm for quick sort?