what is overloading in java?
Answer Posted / ak
Overloading is when the same method or operator can be used
on many different types of data.
For instance the + sign is used to add ints as well as
concatenate strings. The plus sign behaves differently
depending on the type of its arguments. Therefore the plus
sign is inherently overloaded.
Methods can be overloaded as well..same method with
different parameters is said to be method overloading.----
we can perform the similar operation in different ways for
different parameters.
Constructors can be overloaded as well...Overloaded
constructors provide multiple ways to initialize a new object
| Is This Answer Correct ? | 69 Yes | 12 No |
Post New Answer View All Answers
How do constructors use this() and super()?
What do you understand by looping in java? Explain the different types of loops.
What is exception handling in java?
What is a "pure virtual" member function?
What are variable arguments or varargs?
When is the finalize() called? What is the purpose of finalization?
What are format specifiers in java?
What are sets in java?
Explain the pointers in Java?
Is java a utf 8 string?
How to add menushortcut to menu item?
what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread
What is parsing a sentence?
What do you understand by a Static Variable?
Differentiate storage classes on the basis of their scope?