What is boxing and unboxing ?
Answer Posted / rahultripathi
There is two type datatype available Value and reference
type . value are stored in stack and reference type used
in heap . when we copy data from stack memmory to heap it
call Boxing .
Int32 x = 10; object o = x ; // Implicit
boxing
Int32 y = 10;
unboxing : copy data from heap memory to stack called
unboxing
object obj = (object) y; // Explicit Boxing
Rahul Tripathi
raultripathi@myway.com
| Is This Answer Correct ? | 18 Yes | 2 No |
Post New Answer View All Answers
How can we provide the WebParts control functionality to a server control?
Which type of state management is provided by Query String in ASP.NET?
How would you turn off cookies on a page of a website?
Can a master page have more than one contentplaceholder?
Securitywise What are the Enhancements in 2.0?
Which method is used to force all the validation controls to run?
What is the use of service provider?
What is dynamic web page with example?
Explain the difference between an exe and a dll?
What are the steps involved to fill a dataset?
Why is it preferred to not use finalize for clean up?
Less than one page, how many windows will you be able to maintain?
What are the parts of an http response?
How do u deploy your asp.net application?
What is application variable?