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


Please Help Members By Posting Answers For Below Questions

Is arraylist sorted in java?

533


What is the difference between compile-time polymorphism and runtime polymorphism?

566


Are variables stored in ram?

553


What is application tier?

529


What are different types of classloaders?

587






What are inbuilt functions?

573


What is serialization in java?

564


I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?

521


What is autoboxing and unboxing?

582


What is the best definition for data?

521


Are functions objects in java?

541


What are the types of methodology?

514


What makes a function well defined?

521


Why arraylist is used in java?

551


What is split return?

491