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 hash code collision?

816


What are the different tags provided in jstl?

765


What is static in java?

786


What is java virtual machine and how it is considered in context of java’s platform independent feature?

862


What is hash table in java?

684


what is the volatile modifier for? : Java thread

756


How do you stop a thread in java?

823


what is server side caching?

1826


Describe the process as to how substring() methodology mechanisms in java.

795


What about anonymous inner classes in java?

796


What is a predicate method?

756


What is the properties class?

824


What are the 6 functions?

729


Compare Mutex and Semaphore in java.

765


What steps are taken when the OS shifts from one-thread execution to another?

1135