What is the difference between static binding and dynamic binding?
There are two types of binding-
1-dynamic binding
2-static binding
Static and dynamic binding are two important concept which every programmer should be aware of. This is directly related to execution of code. If you have more than one method of same name (method overriding) or two variable of same name in same class hierarchy it gets tricky to find out which one is used during runtime as a result of there reference in code. This problem is resolved using static and dynamic binding in Java. For those who are not familiar with binding operation, its process used to link which method or variable to be called as result of there reference in code. Most of the references is resolved during compile time but some references which depends upon Object andpolymorphism is resolved during runtime when actual object is available.
Didn't get the answer.
Contact people of Talent-Object Oriented Programming directly by clicking here