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
Are there functions in c#?
What is meaning of type safety in c#?
What is jagged array in c#?
what are windows services?
What is an assembly qualified name? Is it a filename? How is it different?
Contrast between an interface and abstract class?
Which is better javascript or c#?
Can we inherit partial class in c#?
What are floating point numbers?
Why are mutable structs evil?
Can a method return multiple values in c#?
What is boxing in c#?
What is the difference between c and c# programming?
Can we have static indexer in c#?
How do I simulate optional parameters to com calls?