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
What checkbox method allows you to tell if a checkbox is checked?
What is defined as false sharing in the context of multithreading?
What are java packages? What is the significance of packages?
Write a program to print 15 random numbers using foreach of java 8?
What is passing value java?
What is a function in java?
What is the purpose of a default constructor?
What are streams in java 8?
What is java util list?
What does this () mean in constructor chaining concept?
What is t in parametric equations?
What is array class in java?
Why we used vector class?
What is the output of the below java program?
what do you mean by java annotations?