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
Can master pages be nested?
how to transfer the file from client to server using asp.net
What is data grid view in asp.net?
What is meant by ispostback in asp net?
Can you set the session out time manually?
What is cookies in asp net?
How many types of server controls do we have?Also explain differance between them taking an example of ASP.NET?
Which class is used to send an email message from an ASP.NET Web page?
What are the Difference between asp.net and asp ?
What is the displayafter property in updateprogress control?
How to sign out from forms authentication?
Can more than one person use the same login?
What are triggers of an updatepanel?
Explain different types of Caching techniques in ASP.NET?
What is the flow of processing of the request? : asp.net mvc