What is boxing and how it is done internally?



What is boxing and how it is done internally?..

Answer / krishna prasad

assigning a value type to objects(reference type)
the boxing occurs
int iValue = 20
object objValue = iValue (boxing)
reference types are stored on heap (all objects,strings)
value types are stored on stack (int,char,bool,etc..)

Is This Answer Correct ?    6 Yes 1 No

Post New Answer

More ASP.NET Interview Questions

Which control would you use if you needed to make sure the values in two different controls matched?

2 Answers  


What is meant by ispostback in asp net?

0 Answers  


How can u sort strings in array where strings are passed to method as arguments.

3 Answers   CTS, Syncfusion,


There is a login page that has two text boxes with required field validators on it. The page has a login and cancel button. How can we ensure that the click on the cancel button doesnt fire a validation event.

2 Answers   Proteans,


When is the ViewState available during the page processing cycle ?

6 Answers   Siebel,






What is sta?

0 Answers  


Can you explain what inheritance is and give an example of when you might use it?

1 Answers  


What are user controls?

0 Answers  


ADO.Net - how to get data from database and bind to the controls -- write this small code

3 Answers   Syntel,


WHAT ARE DEFFERENCE BETWEEN DATALIST AND DATAGRID

1 Answers   Seion Infotech,


How does viewstate work?

0 Answers  


What are all the various Estimation Techniques available ?

0 Answers   MCN Solutions,


Categories