Dynamic Binding / Late Binding VS Static Binding / Early Binding

Static Binding: if the binding is occur at compile time of our source code is called static binding
Dynamic Binding: if the binding is occur when interpreter our class fine then that binding is called Dynamic Binding.

Statis Binding : Initialize the variable like private static HashMap map new HashMap();
Dynamic Binding: Initialize the variable like private HashMap map; and somewhere in the method do map new HashMap();

Read more about this

Leave a Reply

Your email address will not be published. Required fields are marked *


seven − 2 =