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
How to handle a web browser resize operation?
What is the size of integer?
What is the purpose of file class?
Which container method is used to cause a container to be laid out and redisplayed in java programming?
Does java map allow duplicates?
Is minecraft 1.15 out?
What is basic syntax?
What is meant by object?
Which number is denoted by leading 0x or 0x in java?
What is the difference between inner class and nested class?
How do you convert string to int in java?
What is the loop in java?
What is instance example?
Is java same as core java?
Give reasons supporting that string is immutable.