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


Please Help Members By Posting Answers For Below Questions

if i wanna deploy my asp.net project to the production server and situation is that i m still not compiled my project i have as-is on my development side now on production server we dont have a visual studio now what kind of settings i need to be to do in webconfig /machine.config file to deploy my project and in iis too....

1596


What is the difference between asp.net mvc and asp.net webforms? : asp.net mvc

539


Explain about solution explorer window?

615


How to rename a table using sql queries?

568


What is a 404 redirect?

552






Where is asp.net session stored?

474


Difference between singleton and singlecall.

567


What's the ASP.Net Application life cycle?

562


What’s the difference between asp.net web forms and asp.net mvc?

545


Can the unique key be null?

566


What is the benefit of WebAPI over WCF?

563


How can we communicate with each server in N-tier Architecture? and what are the methods?

1785


What is difference between asp.net and asp.net mvc? : Asp.Net MVC

483


What is csrf attack in asp.net?

515


what is DLL Hell and how it is solved in .NET? please explain clearly??

1883