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 difference between method overloading & method
overridding with example?

Answer Posted / tamilvanan

overloading:
method overloading means method name is same and different
parameter ie different signature.. and overloading method
are present in same class
for eg ,
let us consider show() is a method
1.show(int a)
2.show(int a,int b)
overriding:
method overriding means method name is same and
parameter also same. these are present in different levels
of class
for eg,
let us consider show() is a method
1.show(int a)
2.show(int a)

Is This Answer Correct ?    34 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we catch more than one exception in single catch block?

1051


What is size of int in java?

1062


Difference between error and exception

6066


How can you generate random numbers in java?

1049


what is mutual exclusion? : Java thread

1024


what is instanceof operator used in java?

1038


What does nullpointerexception mean?

1088


What do you mean by constructor?

983


Name some classes present in java.util.regex package.

1034


What are the parts of a method?

982


Is an array a vector?

1048


What is the maximum length of a url?

970


What are the 3 types of loops in java?

1086


What is the purpose of garbage collection in java?

1105


How many bits is a float?

1013