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 / vijayakumar chinnasamy

Method overloading:
More than one method have same name but different type
of argument or differnt no. of arguments available in same
class or it subclass is called overloading.

Return type of method and access specifier of method is
not a problem in method overloading.

class A{
void diaplay(int a,int b){ }
void display(float a,float b){ }
void display(float a, int b){ }
void display(int a,int b){
void display(){ }

}

Is This Answer Correct ?    46 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is wrapper class html?

991


Difference between current previous versions of Java?

1079


What is floor in java?

1080


Why string is not a wrapper class?

1227


What is a get method?

1128


Define inheritance?

1074


why doesn't java run on all platforms?

1071


Why are the destructors for base class and derived class called in reverse order when the program exits

2278


What methodology can be employed to locate substrings inside a string?

998


What does business logic mean?

1048


How do you reverse a word in java?

1148


How to display names of all components in a Container?

2986


Is minecraft java edition free?

1166


What is the advantage of functional interface in java 8?

1046


What is backdrop?

1129