GeekInterview.com
Series: Subject: Topic:
Question: 4 of 460

Late and early binding

which one best in late binding and early binding? What is the difference between them ?
Asked by: Interview Candidate | Asked on: Nov 12th, 2011
Showing Answers 1 - 3 of 3 Answers
chopragc

Answered On : Nov 21st, 2011

View all answers by chopragc

Early binding is mapping decided by compiler at compile time or design time.

when compiler does not know at compile time to which object its going to map then its a late binding

Example in remoting

object o=Activator.GetType(typeof(class1),"www.abc.com");

here one does not know to which object it will point unless and until the program is running.

  
Login to rate this answer.

Early binding is best. Because any errors can be resolved at compile time. Late binding is at Run Time

  
Login to rate this answer.
Sivavt

Answered On : Mar 26th, 2012

View all answers by Sivavt

Early binding Or Compile time Or static binding: Assigning of object to type reference happens at compile time.

Late binding Or Run time Or Dynamic binding: Assigning of object to type reference happens at run time.

Early binding is efficient while late binding provides flexibility to programmers.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.