Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Which collection is thread safe in java?

937


Which java version is latest?

962


What are the advantages of packages in java?

1430


What is wrapper class html?

888


Can an integer be a string?

984


Can we declare the main method of our class as private?

948


Can an object subclass another object?

1019


Where is jre installed?

983


What is garbage collection? What is the process that is responsible for doing that in java?

1056


What is increment in java?

919


Can we return null in java?

1065


What is multithreading and its advantages?

1017


When will you define a method as static in Java?

994


What is a variable analysis?

1029


What is the purpose of garbage collection in java, and when is it used?

983