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

What do you mean by hashtable c#?

1068


Explain the difference between a sub and a function in c#.

1078


what is the index value of the first element in an array?

972


What does return do in for loop?

974


Is object an int c#?

982


Does c# have a 'throws' clause?

1093


How the versioning applies to Assemblies or can you explain version numbers?

1078


What is the purpose of a namespace?

908


What is the difference between dll and lib?

1030


What is difference between interface and abstraction?

940


What is file extension of webservices?

1087


What is the use of convert toint32 in c#?

1022


How to do and Apply Themes to Datagrid,Lable,Textbox,etc., in C#.NET 2005 Windows Application? (like who we will do themes in ASP.NET using .CSS and .SKIN files). Urgent!!

2177


What is an object and a class?

1055


How many types of namespaces available in version4?

993