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

How many types of the indexof method are there for strings?

1019


why would you use a synchronized block vs. Synchronized method? : Java thread

998


Is an object null?

1030


How many types of array are there?

1052


Can we store variables in local blocks?

1408


What are the differences between getting and load method?

1295


Can a class be defined inside an interface?

1080


What is a numeric format?

1158


How do you control extraneous variables?

969


Is there a sort function in java?

1019


Explain method overloading?

1077


What are static variables and functions?

1186


What does string mean in java?

1155


Does list allow duplicates in java?

981


What is the major difference between linkedlist and arraylist?

1121