what is dynamic method dispatch in java?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

what is dynamic method dispatch in java??

if i learn of my own i will get only one method if i learn from you people i will get different programes different way of understanding so i asked you. if possible u give programe

4th Feb 2018, 2:51 AM
gnaneswari kolathuru
gnaneswari kolathuru - avatar
5 Answers
+ 6
thanku #chaoticdawg #asmaa khaled
4th Feb 2018, 9:46 AM
gnaneswari kolathuru
gnaneswari kolathuru - avatar
+ 5
welcome... are you mean "chaotic dawg"? :(
7th Feb 2018, 11:13 AM
Asmaa Esbitan
Asmaa Esbitan - avatar
+ 3
Dynamic method dispatch is a mechanism by which a call to an overridden method is resolved at runtime. This is how java implements runtime polymorphism. When an overridden method is called by a reference, java determines which version of that method to execute based on the type of object it refer to. In simple words the type of object which it referred determines which version of overridden method will be called.
4th Feb 2018, 9:29 AM
Asmaa Esbitan
Asmaa Esbitan - avatar
+ 1
Based on Base Class reference we can create object of sub class
5th Feb 2018, 2:29 PM
Narayana Sathish
Narayana Sathish - avatar