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 is the basic difference between asp and asp.net?

0 Answers  


what is the use of asp.net

3 Answers   ABC,


What is marshalling ? Is it a part of asp.net ?

0 Answers   MCN Solutions,


What are all the ways to find out types of objects?

5 Answers   HCL,


What is the difference between application state and session state in asp net?

0 Answers  






How many types of Cookies are available in ASP.NET?

0 Answers   MindCracker,


What is asp.net localization?

0 Answers  


What is the advantage of mvc over asp.net? : Asp.Net MVC

0 Answers  


What are html helpers in asp.net?

0 Answers  


Explain code snippet to register exception filters from controller?

0 Answers  


How can you get public key information?

1 Answers   Microsoft,


What are the validation controls available in ASP.NET?

0 Answers  


Categories