Best Online Resource For Non-Resident Indians
 HOME  PORTALS & REVIEWS  RECIPES  INDIAN RESTAURANTS  GROCERY  COMMUNITIES  MOVIES / TV  FORUMS  CHAT  NEWS  HOROSCOPE  PAINTINGS  CONTACT  LOGIN
Welcome Guest Search | Active Topics | Members | Log In | Register

C#.Net Interview questions part 5 Options
kittusandakinni
Posted: Saturday, May 23, 2009 11:18:47 PM
Rank: Member
Groups: Member

Joined: 3/8/2008
Posts: 5
Points: 15
59. Does C# support multiple inheritance?


No, use interfaces instead.


60. IS goto statement supported in C#?How about Java?


Gotos are supported in C# to the fullest. In Java goto is a reserved keyword that provides absolutely no functionality.


61. What happens when you encounter a continue statement inside for loop?


The code for the rest of the loop is ignored, the control is transferred back to the beginning of the loop.


62. Write one code example for compile time binding and one for run time binding?what is early/late binding?


An object is early bound when it is assigned to a variable declared to be of a specific object type . Early bound objects allow the compiler to allocate memory and perform other optimizations before an application executes.

‘ Create a variable to hold a new object.

Dim FS As FileStream

‘ Assign a new object to the variable.

FS = New FileStream(”C:\tmp.txt”, FileMode.Open)

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.

Dim xlApp As Object

xlApp = CreateObject(”Excel.Application”)

Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

CoolNRI.com® 2006-2009 |  Terms Of Use |  Privacy Statement