| Author |
difference b/w early and late binding
|
Abhishek Reddy
Ranch Hand
Joined: Mar 28, 2006
Posts: 259
|
|
|
Can you tell me what is early and late binding and what is the exact difference between them?
|
Abhishek
|
 |
Chetan Raju
Ranch Hand
Joined: Aug 02, 2006
Posts: 109
|
|
|
If which method to call can be decided at compile time itself, then it is called early binding. Which method to call when cannot be decided at compile time but it is decided at runtime - late binding.
|
 |
Singhal Anuj
Greenhorn
Joined: Mar 28, 2005
Posts: 8
|
|
Hope this helps. http://www.coderanch.com/t/371534/java/java/Static-vs-Dynamic-Binding-Help Regards, Anuj
|
 |
Mr. C Lamont Gilbert
Ranch Hand
Joined: Oct 05, 2001
Posts: 1170
|
|
|
In Java, the choice of which method of the interface will be invoked is determined at compile time. However, the choice of on which class to invoke this method can only be determined at runtime. Furthermore, once you know which class, the JVM must still load the class which is another delay in the binding. Java is late binding.
|
 |
 |
|
|
subject: difference b/w early and late binding
|
|
|