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

Can we define constructor in inner class?

993


What is an infinite loop?

1241


Can we catch more than one exception in a single catch block?

1069


What is the difference between equals() and?

1180


Give me some null interfaces in java?

1046


What is a heavyweight component?

1013


Is binary a low level language?

906


What do you mean by object?

958


Explain jdk, jre and jvm?

962


Explain about public and private access specifiers?

1041


What is the difference between compile-time polymorphism and runtime polymorphism?

984


Why string is not a wrapper class?

1173


Why Java doesn’t support multiple inheritance?

1030


Why is the singleton pattern considered to be an anti pattern?

881


What is meant by 'Class access modifiers'?

1039