This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
What does statically bound and dynamically bound means? * Private method calls are statically bound ... a method will call the private method in the class where it is defined .. even if the calling method is inherited by a derived class and the derived class defines a method with the same signature as the private method. * Calls to public and protected methods in the same class are dynamically bound ... even for constructors (and from private methods). This is different to C++.
Hard work beats talent<br />when talent doesn't work hard.<p> - Tim Notke
Hi Harwinder, Binding is the process by which a name is associated with a property or feature that it names (a variable, a type, a code fragment). Binding time is the time at which the binding takes place. Early or static binding refers to binding performed at compile time (or link time or load time), whereas late or dynamic binding refers to binding performed at run time. When a method is declared static, private or final, the method name is bound to a code fragment at compile-time. The compiler determines which code fragment will be executed for a particular method invocation. Otherwise, the method name is bound to a code fragment at run-time. The virtual machine determines which code fragment to execute based on the type of the object and whether the method chosen by the compiler is overridden. ---- I don�t have a computer science degree, so I have to fill in the gaps by reading school stuff. Two very helpful books for me are An Introduction to Object-Oriented Programming, Timothy Budd Programming Language Pragmatics, Michael Scott Marlene