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 and overriding with example?

Answer Posted / rajesh r

OVERLOADING MEANS SAME METHOD NAME WITH DIFFERENT
PARAMETERS.
BOTH SHOULD BE DEFINED IN SAME CLASS ITSELF.

OVERRIDING MEANS SAME METHOD NAME WITH SAME PARAMETERS.THIS
CAN ASSOCIATED IN A CLASS AND ITS SUBCLASS.(VIRTUAL,
OVERRIDE)

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which sort is best in java?

949


What are static blocks in java ?

1090


Is integer a class?

1073


Which class contains a method: cloneable or object?

1031


Which of the following classes will have more memory allocated?

1012


What is pojo class in java?

1082


Explain about strings in java?

1063


Does importing a package imports its sub-packages as well in java?

964


Why arraylist is not synchronized in java example?

1050


What are the drawbacks of reflection?

1002


What do you understand by weak reference?

1003


Can we define private and protected modifiers for the members in interfaces?

1086


What do you mean by order of precedence and associativity?

939


How many times finalize method will be invoked? Who invokes finalize() method in java?

1010


What is an infinite loop in java? Explain with an example.

1024