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

Can constructor be static or final?

649


Can the interface be final?

580


Why singleton is not thread safe?

566


Explain notify() method of object class ?

612


Where are the local variables stored?

520






How many types of flags are there?

523


What is one third plus one third as a fraction?

485


Is java 11 paid version?

512


Why hashset is used in java?

535


What are bind parameters?

548


What is a function in programming?

555


What is the difference between a vector & an array list?

677


What is parameters example?

554


What is the use of inner class?

543


What is "this" keyword in java? Explain

660