What is method dispatch and how does Java resolve virtual method calls?

Java Associate Hard

Java Associate — Hard

What is method dispatch and how does Java resolve virtual method calls?

Key points

  • Dynamic dispatch determines the method called at runtime
  • Reference type does not dictate the method called
  • Polymorphism is achieved through dynamic dispatch

Ready to go further?

Related questions