What is boxing?

Answer Posted / sivaprasad

Boxing is nothing but converting value type to reference type
Example:int i =10;
object o = i; \\Boxing which can happen implicitly

int j = (int)o; \\Unboxing Converting Referrenvce Type
to value type.

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I force the dispose method to be called automatically, as clients can forget to call dispose method?

503


Explain security types in asp.net?

533


Explain the reason why the javascript validation not run on the asp.net button but run successfully on the html button?

565


Define a web service in .net?

608


Apart from IDE what are the enhancements in asp.net 2.0?

1621






What is asp.net? How is it different from asp?

540


Explain client-side scripting?

563


What is ispostback property?

499


What are the Types of session management in ASP.NET

557


What is the difference between cache and cookies?

512


What are the various ways to send content from one page to another?

518


What are url fragments?

497


Can you explain the basic use of dataview?

622


In ViewState How much lifespan items stored?

589


Do you know using sql cache invalidation?

527