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

Why char array is favored over string for the storage of passwords?

1014


Write a program to calculate factorial in java?

963


Can we override singleton class?

936


Can we inherit a class with private constructor?

1071


What is a treeset in java?

997


What are the types of arrays in java?

1034


How do you create immutable object in java?

997


Why do we use return statement?

974


How to sort a collection of custom Objects in Java?

1012


Tell us something about an iterator.

902


When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?

950


How much ram can a 64 bit processor theoretically?

837


What is encapsulation in java?

1057


How to print nodes of a Binary tree?

2209


How do you get the length of a string in java?

949