Dynamic Method Dispatch

suggest change

Versions

Dynamic method dispatch has been part of Java since Java SE 1.0.

Introduction

What is Dynamic Method Dispatch?

Dynamic Method Dispatch is a process in which the call to an overridden method is resolved at runtime rather than at compile-time. When an overridden method is called through a reference, Java determines which version of that method to execute based on the type of the object it refers to. This is also known as runtime polymorphism.

We will see this through an example.

Remarks

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents