I know what is static binding and dynamic binding. So my question is not related to this.
Let's see what static binding has to say according to this:
1) Static binding in Java occurs during Compile time while Dynamic binding occurs during Runtime.
2) private methods, final methods and static methods and variables uses static binding and bonded by compiler while virtual methods are bonded during runtime based upon runtime object.
3) Static binding uses Type(Class in Java) information for binding while Dynamic binding uses Object to resolve binding.
3) Overloaded methods are bonded using static binding while overridden methods are bonded using dynamic binding at runtime.
Let's focus on one aspect of above :
Now we see that static binding binds class and instance variables to their values and static method calls to relevant method body.
But at some places like this , they define binding as
Association of method call to the method body is known as binding.
But binding also binds variables too.
Now I am confused. Is binding related to just method calls to method body or variables to their values too ? How do we define binding ?