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 string array?

1059


What is an argument in java?

931


Why is stringbuffer thread safe?

1042


What is jvm? How its run?

1075


What is "this" keyword in java? Explain

1095


Is there is any difference between a scrollbar and a scrollpane?

985


Can you make a constructor final in Java?

1126


Can we use this () and super () in a method?

972


Can It is possible to synchronize the constructor of a Java Class?

1109


What is the synonym of framework?

996


what are synchronized methods and synchronized statements? : Java thread

986


What is immutable data?

1044


Which one of the following suits the description of a string better: derived or primitive?

946


How do you test a method for an exception using junit?

1198


What is difference between pointer and reference?

1059