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

How do you replace all in word?

1068


What is the purpose of the system class in java?

1048


What is Gang of four design patterns

1054


What is int lol?

1142


What is java used for?

1017


How to convert string to char and vice versa?

1004


How the interruptible method gets implemented?

975


What is a newline character in java?

1040


What is a line break example?

1001


What are the properties of thread?

930


What are the different types of constructor?

996


What is the difference between static class and normal class?

1032


Is the empty set a singleton?

980


Can classes declared using the abstract keyword cab be instantiated?

1049


Why bytecode is called bytecode?

1209