Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is boxing and how it is done internally?

Answers were Sorted based on User's Feedback



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

Answer / surya

Boxing is an implicit conversion of a value type to the
type object
int i = 123; // A value type
Object box = i // Boxing
CASTING: casting is the process of converting a variable
from one type to another (from a string to an integer)
Unboxing is an explicit conversion from the type object to
a value type
int i = 123; // A value type
object box = i; // Boxing
int j = (int) box; // Unboxing

Is This Answer Correct ?    14 Yes 0 No

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

Answer / sesu

Boxing is the conversion value type to ref. type.

int i=5 -- value type
Object obj; -- Referance type
obj=i; -- Boxing


int j =(int) obj -- Unboxing

Is This Answer Correct ?    12 Yes 0 No

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

Answer / sandhya

Boxing is an implicit conversion of a value type to the
type object
int i = 123; // A value type
Object box = i // Boxing

In case of value type ,value is stored in the stack but
after boxing process value is stored in to heap.

Is This Answer Correct ?    6 Yes 1 No

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

Answer / sudhir singh

the process of converting value type to reference type is
called as boxing.
it is an implicit conversion.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net WindowsForms Interview Questions

How insert record in the database?

0 Answers  


Extension methods can be both static and normal class methods. Yes/No?

1 Answers   Arctern,


Which property value of the helpnavigator property will display the index for a specified topic?

0 Answers  


Which command prompt utility is used to convert a resource file from the text format into the binary format?

0 Answers  


how print barcode

0 Answers   Wipro,


For a server control, you need to have same properties like color maxlength, size, and allowed character throughout the application. How do you handle this?

1 Answers   Microsoft,


what is the Difference between listbox and combo box?

20 Answers   Alpha, Google,


How to redirect a user to new page in ASP.NET without making a round-trip to the browser?

1 Answers   Arctern,


which property is used to change to some value to access a identity column in datacontrols?

0 Answers  


how find recored from the database

2 Answers   Wipro,


Which method grants a lock on a resource?

0 Answers  


How many nuber of controls are there in form?

1 Answers   Morgan Stanley,


Categories