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
Is it possible to have different access modifiers on the get/set methods of a property?
What is the boxing and unboxing in c#?
Can main method be final?
Which namespace is required to implement trace ?
What is parameters in c#?
Why c# is called type safe language?
What is delegates in c# and uses of delegates?
Give examples for reference types?
How to generate strong name key file or which command is used to generated strong name key file?
Does c# support c type macros?
What is difference between static and readonly in c#?
What is multicast delegate explain with example?
What's the implicit name of the parameter that gets passed into the set method/property of a class?
What is tochararray in c#?
Explain a MSIL ? Why is it appreciated by all developers?