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...

Difference between overloading and Overriding. <Giving a
confusing example to test the concept.>
(also asked in PA Consultancy Group,iflex,Value
chain,IBM,CTS,Accenture, Tarang>

Answer Posted / esha prasad

Over loading is polymorphism implementation in same class,
where two or more methods can share same name differing in
parameters passed.
Overriding is polymorphism implementation in different
classes having parent child relationship and the
funtionality in parent class is over shadowed by the
funtionality in subclass.

Is This Answer Correct ?    72 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is serialization required?

913


How do you take thread dump in java?

942


Explain aggregation in java?

920


What is break and continue statement?

1027


Why destructor is not used in java?

927


Explain the access modifiers for a class, method and variables?

1091


Is it possible for yielded thread to get chance for its execution again ?

962


What is a singleton class? Give a practical example of its usage.

1043


What is an error in java?

1092


What is hashmap in java?

1018


What is hashmap and map?

958


Can a constructor be protected?

1029


What is static variable with example?

954


How many types of exception can occur in a java program?

925


What is difference between final and immutable?

1076