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 the difference between overloading and overriding a
function?

Answer Posted / raj kashyap

OVERLOADING is possible to create methods that have the same
name, but different parameters lists and different
definitions.overloading is used when objects are required to
perform similar task but using different parameters.



OVERRIDING is used when we want an object to respond to the
same method but have different behaviour when that method is
called. that means we override the method defined in super
class.yhis is possible by defining a method in subclass that
has same name,same argument& same return typeas method in
super class.

Is This Answer Correct ?    12 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What kind of variables a class can consist of?

1105


What are the supported platforms by java programming language?

1045


Why there are some null interface in java? What does it mean?

1123


Can we pass a primitive type by reference in java? How

925


What is an exception? difference between Checked and Unchecked exception in Java

1012


Is Constructor possible in abstract class in java ?

1064


Is java hard to learn?

900


What is the synonym of string?

1093


What are constructors in java?

1113


What is the difference between normal report & matrix report?

1110


Is java same as core java?

1093


What is the function of character?

1053


How is hashcode calculated in java?

1033


Difference between ‘>>’ and ‘>>>’ operators in java?

1123


What is private static in java?

1040