Dynamic method dispatch or runtime polymorphism in Java rcub
Dynamic method dispatch or runtime polymorphism . Dynamic method dispatch is a mechanism by which a call to an overridden method is resolved at runtime rather than compile time. 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. When type of the object is determined at run-time, it is known as dynamic binding . Dynamic binding :If linking(association) between method call and method implementation(body) resolved at runtime time by jvm is known as dynamic or late binding. Example :method overriding -Compiler deos not decided which method to call. It will decided by JVM. Parent class reference variable refers to Child class object, it is known as Upcasting....