RTTI in java is not the same thing as dynamic binding (that is, polymorphism), right? What is the difference between RTTI (dynamic type detection) and dynamic binding?

    1 answer 1

    Dynamic (or later) binding means defining (binding) a method during its execution. The method, in turn, is chosen according to its type, that is, using RTTI (runtime type identification). That is, it turns out that dynamic binding uses RTTI.

    In a general sense, RTTI is broader than dynamic linking, because using RTTI not only dynamic linking is implemented, but also, for example, the reflection mechanism — the Java Reflection API