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...

Diff b/w casting and boxing

Answer Posted / ritesh kumar

Boxing is converting a value type to a reference type
(Object Type).Casting is converting a reference type to a
reference type or a value type as another value type.
int i = 0;
object o = (object)i; //this is boxing
int i2 = (int)o; //this is unboxing.

long l = (long)i; //this is casting.

Is This Answer Correct ?    29 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are c# objects passed by reference?

898


What is throw in c#?

895


Can we use "this" command within a static method?

1000


What is oledb in c#?

936


List down the reason behind the usage of c# language.

1313


What is difference between string and string builder?

979


Constructor to an arbitrary base constructor?

984


What are c# i/o classes? What are the commonly used i/o classes?

928


What is writeline in c#?

874


What is asynccallback c#?

1039


What is the predicate of a sentence?

920


What is the difference between ienumerable and icollection?

932


Name the method of servicebase class?

1001


Is c# front end or back end?

938


Explain About .NET Framework

919