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

Difference b/w casting and boxing?

Answer Posted / anand gopal makwa munger

Boxing is the term for turning a value type (int, double, float, Guid, etc.) into a reference type (System.Object, System.String, etc.). Doing this boxing operation allocates memory on the heap (which the garbage collector will eventually need to reclaim).

Casting is taking a type (say, System.Object) and treating it as another type (say, System.String).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference cookie and session?

1034


what are the Custom controls in asp.net?

1084


What is the difference between executescalar and executenonquery?

1081


What are the Types of authentications in IIS

1115


How can we Validate a Controls in ASP.NET page using JavaScript?

1260


Which method is used to enforce garbage collection in .net?

909


What is event bubbling?

1075


Can you explain composite pattern?

1100


What is csrf attack in asp.net?

1085


What are the differences between primary foreign and unique keys?

1129


What is session in http request?

1070


What is the difference between pathparam and queryparam?

1120


What is class and object in asp.net?

1289


List the advantages and disadvantages of user control an custom control?

1010


When maintaining session through sql server, what is the impact of read and write operation on session objects?

1045