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 any one find and tell the difference between dot net and php which one is best ? which one we get more salary? which one is stable and which one is best for freshers and also better in future and carrer ? which one we wil get more salary sir ? please send ur valuable suggestions to kiranpulsar2007@gmail.com
What is the difference between “Web.config” and “Machine.Config”?
Where web.config file is used?
Differentiate between a page theme and a global theme?
Explain what is clr?
Explain what is an abstract class?
What is page request in asp.net?
How we implement web farm and web garden concept in asp.net?
Tell me what is the request flow used for asp.net mvc framework? : asp.net mvc
Explain the difference between codebehind="mycode.aspx.cs" and src="mycode.aspx.cs"?
What is the difference between a candidate key and primary key?
What is variable and constant in .net programming language?
How can we create a website?
Why session is used in asp.net?
Which method is used to perform all validation at the page level?