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 what a diffgram, and a good use for one Define diffgram? How it be used?
What is .dbml file?
What are the extension methods in c#?
What is dll in vb.net?
What are collection classes?
In .NET how can you solve the DLL Hell problem?
what will be the output of the given below coding. using System; public class Exercise { static void OddNumbers(int a) { if (a >= 1) { Console.Write("{0}, ", a); a -= 2; OddNumbers(a); } } public static int Main() { const int Number = 9; Console.WriteLine("Odd Numbers"); OddNumbers(Number); Console.WriteLine(); return 0; } }
What is the benefit of delegate in c#?
List down the fundamental oop concepts?
What is the difference between int16 and int32 in c#?
What is difference between array and collection?
Will the following code compile and run?
Is arraylist thread safe?
Does c# support multiple inheritance (mi)?
Can int be null c#?