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.

Answers were Sorted based on User's Feedback



Hi to everybody. Lastweek i had taken an interview on c#. They ask what is boxing & unboxing, M..

Answer / saubhagya

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

Is This Answer Correct ?    10 Yes 1 No

Hi to everybody. Lastweek i had taken an interview on c#. They ask what is boxing & unboxing, M..

Answer / mr. d

class Test
{
static void Main()
{
int i = 1;
object o = i; // boxing
int j = (int) o; // unboxing
}
}

Is This Answer Correct ?    10 Yes 1 No

Hi to everybody. Lastweek i had taken an interview on c#. They ask what is boxing & unboxing, M..

Answer / swaminathan

Masking is the process of Changing BITS in a BYTE

Is This Answer Correct ?    2 Yes 1 No

Hi to everybody. Lastweek i had taken an interview on c#. They ask what is boxing & unboxing, M..

Answer / 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

Hi to everybody. Lastweek i had taken an interview on c#. They ask what is boxing & unboxing, M..

Answer / sdfasd

Boxing:converting the value type into reference type is called as boxing
during boxing typecasting can be done implicitly.
during boxing the values are copied from method stack to managed heap.
Unboxing:
converting the reference type into value type is called as unboxing
during unboxing typecasting can be done explicitly.
during unboxing the values are copied from managed heap to methodstack.

Is This Answer Correct ?    1 Yes 0 No

Hi to everybody. Lastweek i had taken an interview on c#. They ask what is boxing & unboxing, M..

Answer / sravanthi

BOXING:We can translate value type to reference type.
UN BOXING:We can translate reference type to value type.

Is This Answer Correct ?    2 Yes 2 No

Hi to everybody. Lastweek i had taken an interview on c#. They ask what is boxing & unboxing, M..

Answer / raj

Boxing: Implicitly converting value type to object type

Eg: int i=1;
object obj=i;

UnBoxing:Explicitly Converting object type to value type

Eg: int j=(int) obj;

Is This Answer Correct ?    0 Yes 0 No

Hi to everybody. Lastweek i had taken an interview on c#. They ask what is boxing & unboxing, M..

Answer / kishore

Boxing : The process of converting value type to reference
type is konwn as boxing

Unboxing: The process of converting Reference type to value
type is known as Unboxing

Masking: Its is the process of changing bits in a byte.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C Sharp Interview Questions

What is function and method in c#?

0 Answers  


Distinguish between continue and break statement?

0 Answers  


What is a constructor in c#?

3 Answers  


What is appdomain in c#?

0 Answers  


What is xpath in c#?

0 Answers  


If I have more than one version of one assemblies, then how'll I use old version (how/where to specify version number?)in my application?

0 Answers  


What is an escape sequence?

0 Answers  


Is it possible to execute multiple catch block for a single try statement?

0 Answers   Siebel,


Explain the process of inheriting a class into another class?

0 Answers  


What do you mean by stack and heap in c#?

0 Answers  


Why we use get and set method in c#?

0 Answers  


Can abstract class have parameterized constructor?

0 Answers  


Categories