what is dynamic method dispatch ?

Answer Posted / arijit

Java uses this fact to resolve calls to overridden methods
at run time. Here’s
how. When an overridden method is called through a
superclass reference, Java determines
which version of that method to execute based upon the type
of the object being referred to at the
time the call occurs. Thus, this determination is made at
run time with the help of dynamic method dispatch .

Is This Answer Correct ?    31 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the base class in java from which all classes are derived?

503


What is the purpose of javac exe?

545


Convert a BST into a DLL and DLL to BST in place.

652


Difference between a class and an object?

562


What are java methods?

560






What is the difference between declaration and definition in java?

498


How is tree Mirroring implemented?

621


What is the Concept of Encapsulation in OOPS

541


You're given a Boolean 2D matrix, can you find the number of islands?

580


Write a program to print fibonacci series

598


Why pass by reference is not possible in java?

483


Which is the best approach for creating thread ?

703


Is empty string in java?

522


How do you remove duplicates from an array in java?

518


How to invoke external process in java.

553