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 / 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 |
Post New Answer View All Answers
What are the different ways of method can be overloaded?
Is dictionary reference type c#?
How do you declare an interface in c#?
What are types of constructor?
What is interface inheritance in c#?
What is the purpose of a namespace?
What are logical operators in c#?
What is an icollection in c#?
if a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?
Can we override interface methods in c#?
What is hashtable in c# with example?
What does dbml mean in texting?
Is there a way of specifying which block or loop to break out of when working with nested loops?
What is difference between private and static constructor?
What is type safe in c#?