Dynamic binding == late binding in Java or not?

In different sources I read different things on this topic. For example, Wikipedia says:

Late linking is often confused with dynamic mailing, but there are significant differences.

But a couple of lines later

It is popular to use the term late binding in Java programming as a synonym for dynamic dispatch. In particular, this refers to the single Java dispatch mechanism used with virtual methods.

So where is the truth and what are these “significant differences”?

+7
java polymorphism oop
Feb 27 2018-12-12T00:
source share
1 answer

Late binding and dynamic one-time sending are essentially the same. In a separate dynamic dispatch, the value or identifier of a single object determines which code is invoked at runtime and what happens in Java.

The term dynamic sending is generally used to refer to dynamic multiple sending, in which the run-time method is selected based on the identifiers or values ​​of more than one object, which is a language function in CLOS and Smalltalk, but not in Java or C ++ .

+6
Feb 27 '12 at 19:27
source share



All Articles