What is Boxing and Unboxing?
Answer Posted / karthik
Boxing:Focing an value type into referencetype is known as boxing.
EX:int a=10;
object obj;
obj=a;
Unboxng:forcing an reference type into value type is known as unboxing.
EX:
int b:
b=(int)obj;
unboxing should be done explicitly using datatype casting.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can the unique key be null?
What is jade template engine?
What are the various types of validation controls provided by asp.net?
Suppose you want an asp.net function (client side) executed on the mouseover event of a button. Where do you add an event handler?
How long does an http session last?
Explain Session state management options in ASP.NET.
What is the difference between ASP.NET Webforms and ASP.NET MVC?
To bind columns manually which tags do you need to add within the asp:datagrid ?
Which is faster viewbag or viewdata?
Explain the path instructions in xaml?
What is difference between cache and session?
Which method do you use to kill explicitly a users session?
When you use Ajax controls in the ASP.NET application?
Explain the namespace classes used in asp.net mvc? : asp.net mvc
What is scope of an application variable in asp.net?