Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference b/w early and late binding

 
Abhishek Reddy
Ranch Hand
Posts: 259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you tell me what is early and late binding and what is the exact difference between them?
 
Chetan Raju
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hope this helps.
http://www.coderanch.com/t/371534/java/java/Static-vs-Dynamic-Binding-Help

Regards,
Anuj
 
Mr. C Lamont Gilbert
Ranch Hand
Posts: 1170
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic