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

why java does compile time polymorphism at run time ?

Answer Posted / sarbbottam bandyopadhyay

compile time polymorphism is nothing but dynamic binding.
For overloaded method java uses static binding.
For overridden method Java uses dynamic binding.
Weather the method of the base class or the method of parent class will get invoked depend on the method invocation. i.e. which object is invoking the method, which class this object is an instance of.

Refer the below link.
http://download.oracle.com/javase/tutorial/java/IandI/polymorphism.html

Is This Answer Correct ?    5 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the six ways to use this keyword?

1110


How many types of memory areas are allocated by jvm?

1084


What is the base class of all classes?

1106


What is loop in java?

1048


What is google full form?

1059


Is a string literal?

1207


What is an accessor?

1761


What is use of inner class in java?

1234


What is difference between an object and a class?

1169


Why does java doesnt suuport unsigned values?

2304


What is difference between checked and unchecked exception in java?

1059


What is valid keyword in java?

1043


What is collection sort in java?

991


What is try-with-resources in java?

1217


What is a values collection view ?

1144