ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  C Sharp
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
What is early binding and late binding
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is early binding and late binding
Answer
# 1
Early binding - Assigning values to variables during design 
time or exposing object model at design time.

Late Binding - Late binding has the same effect as early 
binding.  The difference is that you bind the object 
library in code at run-time
 
Is This Answer Correct ?    10 Yes 1 No
Laks
 
  Re: What is early binding and late binding
Answer
# 2
From a program point of view during early binding the 
function call is resolved at compile time.
In case of late binding the function call is resolved at 
run time with the superclass reference object. It calls the 
function of that subclass whose object is being referred by 
the superclass reference object.
 
Is This Answer Correct ?    6 Yes 1 No
Kanak
 
 
 
  Re: What is early binding and late binding
Answer
# 3
Guys,Can u please Give one example for late binding and
early binding.
 
Is This Answer Correct ?    1 Yes 5 No
Rajesh
 
  Re: What is early binding and late binding
Answer
# 4
BINDING :A process when an object is assigned to an object
variable.
EARLY BINDING:
An object is early bound when it is assigned to a variable
declared to be of that specific object type. Early bound
objects allow the compiler to allocate memory and perform
other optimizations before an application executes. For
example, the following code fragment declares a variable to
be of type FileStream:
'  Create a variable to hold a new object.
Dim FS As System.IO.FileStream
' Assign a new object to the variable.
FS = New System.IO.FileStream("C:\tmp.txt", _
    System.IO.FileMode.Open)
LATE BINDING:
By contrast, an object is late bound when it is assigned to
a variable declared to be of type Object. Objects of this
type can hold references to any object, but lack many of the
advantages of early-bound objects. For example, the
following code fragment declares an object variable to hold
an object returned by the CreateObject function:

' To use this example, you must have Microsoft Excel
installed on your computer.
' Compile with Option Strict Off to allow late binding.
Sub TestLateBinding()
    Dim xlApp As Object
    Dim xlBook As Object
    Dim xlSheet As Object
    xlApp = CreateObject("Excel.Application")
    ' Late bind an instance of an Excel workbook.
    xlBook = xlApp.Workbooks.Add
    ' Late bind an instance of an Excel worksheet.
    xlSheet = xlBook.Worksheets(1)
    xlSheet.Activate()
    ' Show the application.
    xlSheet.Application.Visible = True
    ' Place some text in the second row of the sheet.
    xlSheet.Cells(2, 2) = "This is column B row 2"
End Sub
I took this from this URL:
http://msdn.microsoft.com/en-us/library/0tcf61s1(VS.80).aspx
 
Is This Answer Correct ?    6 Yes 1 No
Prasad Sethuramalingam
 
  Re: What is early binding and late binding
Answer
# 5
Early binding - Assigning values to variables during design 
time or exposing object model at design time.

Late Binding - Late binding has the same effect as early 
binding.  The difference is that you bind the object 
library in code at run-time
 
Is This Answer Correct ?    1 Yes 1 No
Shakti Prasad Prusty
 

 
 
 
Other C Sharp Interview Questions
 
  Question Asked @ Answers
 
Error handling and how this is done ? Digital-GlobalSoft1
How do you generate documentation from the C# file commented properly with a command-line compiler?  1
what is the difference between c-sharp and vb.net?What kind of security or advances we find in both languages? DataPoint1
What is Abstraction? Tech-Mahindra3
What are the the three types of DAO ?  1
what are value types and reference types? where they are stored? Kanbay4
difference between keyword internal and protected? HCL4
What is the use of giving more than one CATCH BLOCK in one TRY block? Directly we can give that catch(Exception e)?Why we go for arrayoutofbound Exception,divided by zero etc..? Explain  2
what is the main differnce between const,readonly and static CDAC3
What?s the .NET datatype that allows the retrieval of data by a unique key?  2
What is the Difference between directcast and ctype? Wipro1
what does static void Main(string[] args) in C# mean???????? ssinformatics3
what is the difference between finally and dispose methods? HCL3
int i = 1; int j = 1; System.Console.WriteLine(i == j); System.Console.WriteLine(i.ToString() == j.ToString()); System.Console.WriteLine((object)i == (object)j); Give the sample code above, what is the output to the console?  3
What?s the advantage of using System.Text.StringBuilder over System.String?  1
What are the valid parameter types we can pass in an Indexer ? CMC3
If a class is having 4 variables namely type double,type integer,type string,type decimal. If we create an instance of that class those variables which gets into this instance are value types or reference types? Kanbay3
What does assemblyinfo.cs consists ? Microsoft2
Whats the use of string builder? ADITI1
Describe the accessibility modifier protected internal. Visual-Soft1
 
For more C Sharp Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com