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
Do we get an error while executing the “finally” block in c#?
What is disconnected data architecture in c#?
Can derived classes have greater accessibility than their base types?
What are primitive types in c#?
What is the difference between ref and out parameters in c#?
Can c# inherit multiple classes?
What is console readkey ()?
What does get set mean in c#?
Which technology is best for desktop application?
who is a protected class-level variable available to?
What does ienumerable mean?
Which program construct must return a value?
What is super class in c#?
What are nested classes in c#?
Explain the difference between private and shared assembly?