what is dynamic method dispatch ?
Answer Posted / aniruddha
It is the way by which run-time polymorphism is implemented
in java.Here a call to overridden method is resolved at
run-time rather than at compile-time,determining the type of
object,passed as the reference to the overridden
method.Hence,the compiler checks the compatible method with
the given object reference(whether it is base class or
derived class method).
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Is it safe to install java on my computer?
What is difference between c++ and java ?
Can we have return statement in finally clause? What will happen?
Can inner class have constructor?
What is integer parseint?
Which class cannot be a subclass in java?
How do you create an array in java?
In how many ways we can do exception handling in java?
What is a Null object?
What is meant by nested loop?
When is the arraystoreexception thrown?
Who developed java?
Explain scope or life time of local variables in java?
Why we use protected in java?
What are the two main uses of volatile in Java?