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
Write a program to reverse a number in java?
How is a structure different from array ?
What is difference between module and function?
What method is used to specify a container's layout in java programming?
Where can I find jdk in my computer?
How many arguments can a method have java?
How many bytes is a string?
Difference between stack and queue?
What is OOP Language?
How do you sort arrays in java?
Can list be final in java?
Why is logger singleton?
how to write a server program and sending the mails to the server using smtp protocol please help me
How does remove work in java?
Does chrome use java?