What is boxing? How we can use it?

Answers were Sorted based on User's Feedback



What is boxing? How we can use it?..

Answer / yoga

Boxing: convert the value types to reference type
Unboxing: Convert the reference type to value type

Is This Answer Correct ?    7 Yes 0 No

What is boxing? How we can use it?..

Answer / 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;
object obj = (object) y; // Explicit Boxing


Rahul Tripathi
raultripathi@myway.com

Is This Answer Correct ?    6 Yes 1 No

What is boxing? How we can use it?..

Answer / prasanthi

convert value type into reference type

Is This Answer Correct ?    1 Yes 0 No

What is boxing? How we can use it?..

Answer / monu

Boxing is an implicitly method which is use to convert the
value type datatypes.

Unboxing is an Explicitly.
Int32 x = 20; object o = x ; // Implicit
boxing
Int32 y = 20;
object obj = (object) y; // Explicit Boxing

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What are the components of ado.net?

0 Answers  


What are the different types of Caching techniques in ASP.NET?

0 Answers  


How do you bind array to gridview? Will it works?

4 Answers   HP,


What is full form of asp.net?

0 Answers  


Less than one page, how many windows will you be able to maintain?

0 Answers   Atos Origin,






what is the difference between server.Transfer and response.redirect in .net

1 Answers  


Any disadvantages in Dataset and in reflection ?

1 Answers   DELL,


Explain the role of global.asax?

0 Answers  


What kind of data can be stored in viewstate?

0 Answers  


How to write unmanaged code and how to identify whether the code is managed /unmanaged?

4 Answers   Accenture,


What is masterpage?

0 Answers  


can any one explain about 3-tier architecture and how to deploy 3 layers of 3-tier architecture in 3 different servers.plz send me .net code

1 Answers   Wipro,


Categories