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 / ankur dhoot

In overloading two function should have different signature
but overriding show have exactly same signature.

Overloading generally happens in same class but overriding
mandatory requires super and sub class to happen.

Compiler decides overloading at compile time but overriding
is detected at run time.

Overloading is called static polymorphism while overriding
is called dynamic polymorphism.

Is This Answer Correct ?    53 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a final method be overloaded?

944


How many bytes is a string java?

1026


Which is easier netbeans or eclipse?

1060


How will you get the platform dependent values like line separator, path separator, etc., ?

1027


Can we return null in java?

1156


Is list thread safe in java?

923


What is the maximum size of list in java?

973


Do I need java for windows 10?

1044


What is meant by anonymous class?

1025


What java is used for?

1075


What is difference between java and java ee?

1032


What does arrays sort do in java?

1021


Give a practical example of singleton class usage?

1058


What is a nullable field?

1037


Have you ever used hashtable and dictionary?

1019