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 / mr. d
class Test
{
static void Main()
{
int i = 1;
object o = i; // boxing
int j = (int) o; // unboxing
}
}
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
what is object-oriented programming (oop) language?
Explain how is the dll hell problem solved in .net?
Explain the feature of c# language?
Explain the difference between abstract class and interface in .net?
Why can't we use a static class instead of singleton?
What does the dispose method do with the connection object?
How more than one version of an assembly can keep in same place?
What is the difference between delegates and superdelegates?
Define c# i/o classes? List the commonly used classes?
How can you prevent escaping on backslashes in C# with string definitions?
What is lastindexof c#?
Can a class have static constructor?
What is final keyword in c#?
Is c++ or c# better?
List the difference between the virtual method and the abstract method?