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
Explain the difference between throw and throws in java?
How do I remove a character from a string in java?
Is alive in java?
What is byte value?
Define an abstract class with reference to java.
Can we force garbage collector to run ?
Why is singleton class used?
How do you declare a destructor in java?
What do you mean by constant time complexity?
What do you mean by formatting?
Can a method inside a interface be declared as final?
What is collection api?
What class allows you to read objects directly from a stream?
What is map java?
What is a variable and constant?