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

Hi to everybody. Lastweek i had taken an interview on c#.
They ask what is boxing & unboxing, Masking.Please tell the
answer and it is useful for me.

Answer Posted / chandu

Boxing:converting from value types to reference type is
known as boxing.
Unboxing:Converting from reference types to value type is
known as unboxing.

boxing ex: int i=1;
obj o=i;

unboxing ex: int i=1;
obj o=i;
int j=int o;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to have different access modifiers on the get/set methods of a property?

941


What is the boxing and unboxing in c#?

827


Can main method be final?

856


Which namespace is required to implement trace ?

915


What is parameters in c#?

883


Why c# is called type safe language?

784


What is delegates in c# and uses of delegates?

787


Give examples for reference types?

933


How to generate strong name key file or which command is used to generated strong name key file?

893


Does c# support c type macros?

867


What is difference between static and readonly in c#?

918


What is multicast delegate explain with example?

903


What's the implicit name of the parameter that gets passed into the set method/property of a class?

940


What is tochararray in c#?

860


Explain a MSIL ? Why is it appreciated by all developers?

1053