What is boxing and un-boxing in .net?



What is boxing and un-boxing in .net?..

Answer / Avaneesh Kumar Sahu

Boxing is the process of converting a value type (like int or struct) into an object. Un-boxing is the reverse operation, converting an object back into a value type.nFor example, boxing an integer into an object: Object obj = 42;nUn-boxing an object back into an integer: int num = (int)obj;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

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  


What is a strong name in .net?

1 Answers  


What are the properties of ADO.NET?

1 Answers   Amdocs,


What is a formatter in .net?

1 Answers  


What is IIS and how we deploy website on IIS.

2 Answers   NetLink,


How to send the Mail in C# using ASP.Net ? And my Answer is as follows ?

3 Answers   Intel,


Explain what is the difference between web application and enterprise application?

1 Answers  


Can you explain what do you understand about web service?

1 Answers   Accenture,


What is Code group in .Net with respect to CAS

1 Answers  


What are object pooling and connection pooling and difference?

3 Answers   TCS,


Explain how to manage pagination in a page using .net?

1 Answers  


What data providers available in .net to connect to database?

1 Answers  


Categories