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
What is java ceil?
What is a default method?
Why main() method is public, static and void in java ?
What do you mean by scope of variable?
What is meant by structural programming?
What is a method in programming?
What is listnode in java?
What is an infinite loop? How infinite loop is declared?
Can substring create new object?
What is a lock or purpose of locks in java?
What is difference between static class and normal class?
What is boolean keyword in java?
How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?
What is a text string?
What restrictions are placed on method overloading in java programming?