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 the use of predicate in java 8?
What are the main uses of the super keyword?
Is it possible to override private or static method in java?
Explain about wait() method?
What is bom encoding?
What is string and its types?
Why do we need wrapper classes?
What are the 4 types of research methods?
What is the replace tool?
When do we use synchronized methods in java?
What is arrays fill in java?
What is functional interface in java?
What does escaping a character mean?
What exactly is a .class file?
What are the restrictions that are applied to the java static methods?