How boxing and unboxing occures in memory?



How boxing and unboxing occures in memory?..

Answer / Lalan Kumar

Boxing refers to the process of converting a value type (e.g., int) into an object (System.Object). When this happens, the value type is wrapped inside an object instance on the heap. Unboxing, on the other hand, involves converting an object back to its original value type. This operation extracts the underlying value from the object instance and assigns it to a variable of the appropriate value type.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

What is strong-typing versus weak-typing? Which is preferred?

1 Answers  


What is managed code in .NET?

1 Answers  


Explain what is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control?

1 Answers  


Does .net supports destructors concept?

1 Answers  


which is the best dot net coaching center in visakhapatnam??

3 Answers  


What is a windows process in .net?

1 Answers  


What is .net debug & trace?

1 Answers  


Is .net core stable?

1 Answers  


How can I tell if .net 3.5 is installed?

1 Answers  


Explain about Behavioral design pattern?

1 Answers  


Can u any body send the DotNet Interview questions and answers to my mail please....... mindukuru@yahoo.com

1 Answers  


Explain the top .net class that everything is derived from?

1 Answers  


Categories