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


Please Help Members By Posting Answers For Below Questions

What is the importance of main method in Java?

575


What is the largest number a double can hold?

562


How to split arraylist elements in java?

598


What is jee6?

538


Tell me a few examples of final classes defined in Java API?

562






When arithmeticexception is thrown?

581


Can the garbage collection be forced by any means?

531


Explain about the security aspect of java?

575


How many decimal digits is 64 bit?

536


What do you mean by an object in java?

631


What is array list in java?

591


How many return statement are allowed in a function?

456


What is nullpointerexception in java?

523


What is the history of java?

546


Write an algorithm for quick sort?

617