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

Explain the importance of finalize() method.

915


What are sets in java?

887


Can we use String with switch case?

1106


What is the default value of local and global variables?

1040


What are new features introduced with java 8 ?

930


What is the covariant return type?

1021


Explain what is Marker interface?

1033


What is difference between string and stringbuffer?

990


What is procedure writing?

899


Does java isempty check for null?

942


What are the different collection views provided by maps?

930


What does a void function return?

947


Explain the difference between static and dynamic binding in java?

1016


Describe different states of a thread.

939


Is java call by value?

1023