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
Can java arraylist hold different types?
Why is java so important?
What is a ternary operator in java?
Is java free for businesses?
What is the difference between static binding and dynamic binding?
Objects or references which of them gets garbage collected?
What is the difference between serializable and externalizable interfaces?
What are access specifiers available in java?
What is a function argument in java?
Write a java program for binary search?
Can we sort hashset in java?
What is a ?
What is an object class?
What will happen if static modifier is removed from the signature of the main method?
Which are different kinds of source code?