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
Explain jagged arrays in c#?
What is IL / CIL / MSIL?
What is the c# equivalent of c++ catch (…), which was a catch-all statement for any possible exception? Does c# support try-catch-finally blocks?
What's the difference between a method and a procedure?
Is string null or empty?
Why can't we use a static class instead of singleton?
What does using system mean in c#?
What are the different types of constructors in c#?
What is sqlconnection in c#?
What is the difference between string keyword and system.string class?
Explain namespaces in c#.
What is difference between dll and exe in c#?
What are classes in c#?
What are the types of comments in c#?
Define an assembly in .net?