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 base class do all Web Forms inherit from?

2 Answers   Siebel Systems,


What are the advantages of asp.net?

0 Answers  


What is httpresponse?

0 Answers  


What is the use of data set in asp.net?

0 Answers  


Describe and In Process Vs Out of Process component. Which is faster?

2 Answers   Syntax Softtech,






What is ISAPI?

2 Answers   IBM,


How can u deifne the benefits and limitation of using Viewstate for state management?

0 Answers   QuestPond,


How can you provide an alternating color scheme in a Repeater control?

1 Answers  


What is preprocessor in .net? Where it use?

0 Answers  


What is the difference between a candidate key and primary key?

0 Answers  


Give real time examples for polymorphism, encapsulation, inheritance..

2 Answers   L&T,


What is a reflection?

0 Answers  


Categories