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 / jephin daviss

Overloading means that the same operator, method maybe used
for different purposes.
It is part of the OOP concept 'Polymorphism'.
1)Method overloading:Methods with same name, but different
argument types and number of arguments.
2)Operator overloading: Same operator can be used for
different ways, ex:'+' can be used for addition and for
concatenation.
3)Constructor overloading: We can define two constructors
for a same class, ie with same name, but difference in
argument types and number of arguments.

Is This Answer Correct ?    10 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the concept of multithreading?

982


What is a Hash Table? What are the advantages of using a hash table?

1080


What is the major difference between linkedlist and arraylist?

1035


Distinguish between a predicate and a function?

983


What is variable argument in java?

997


Can we convert stringbuffer to string?

1004


Name few java util classes introduced with java 8 ?

907


How to avoid memory leak in java?

1126


What is finalize method?

1105


Which java version is latest?

1027


Can you declare the main method as final?

1006


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

1033


What is the set interface in java programming?

1201


What is the base class of all exception classes in java?

1050


How do you add an element to an arraylist in java?

936