Home > Software > .NET > ASP.NET
Interview Questions   Tutorials   Discussions   

ASP.NET - What is early binding and Late binding? Difference which is better ?

asked mar October 4, 2014 11:48 AM  

What is early binding and Late binding? Difference which is better ?


1 Answers

answered By siddhant   0  

Early bound

  • The compiler can work out where the called function will be at compile time.
  • The compiler can guarantee early (before any of the programs code runs) that the function will exist and be callable at runtime.
  • The compiler guarantees that the function takes the right number of arguments and that they are of the correct type. It also checks that the return value is of the correct type.


  • The lookup will take longer because its not a simple offset calculation, there are usually text comparisons to be made.
  • The target function may not exist.
  • The target function may not accept the arguments passed to it, and may have a return value of the wrong type.
  • With some implementations, the target method can actually change at run-time. So, the lookup may execute a different function. I think this happens in the Ruby language, you can define a new method on an object while the program is running. Late-binding allows function calls to start calling a new override for a method instead of calling the existing base method.
   add comment

Your answer

Join with account you already have



Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!