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 hash code collision?
What are the different tags provided in jstl?
What is static in java?
What is java virtual machine and how it is considered in context of java’s platform independent feature?
What is hash table in java?
what is the volatile modifier for? : Java thread
How do you stop a thread in java?
what is server side caching?
Describe the process as to how substring() methodology mechanisms in java.
What about anonymous inner classes in java?
What is a predicate method?
What is the properties class?
What are the 6 functions?
Compare Mutex and Semaphore in java.
What steps are taken when the OS shifts from one-thread execution to another?