http://geekexplains.blogspot.com/2008/06/dynamic-binding-vs-static-binding-in.html
This page explains the difference of static binding and dynamic binding in java...
To summarize:
All the instance method calls are resolved at runtime so that is dynamic binding.
All the static method calls are resolved at compile time so it is static binding.
As the static methods are resolved at the compile time so it is not possible to override them.
As java does not allow polymorphism so all the member functions are resolved at compile time only.
Similarly private methods are resolved at compile time only as they are never inherited..
No comments:
Post a Comment