GeekInterview.com
Series: Subject: Topic:
Question: 133 of 528

What is boxing? What is the benefits and disadvantages of it?

Asked by: Interview Candidate | Asked on: Apr 3rd, 2007
Showing Answers 1 - 1 of 1 Answers
Boogster

Answered On : Jun 5th, 2007

Boxing is converting a value-type to reference type. An example is converting an integer value to an object value.Ex:   int intValue = 10;   object obj = (object)intValue;This is used if you want to pass variables of object types to certain functions or methods you have created. Commonly used in events for example (Object sender...).

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.