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 expression tree in c#?
Why singleton class is sealed?
Is typeof c#?
What is base class in c#?
What is difference between ienumerable and list in c#?
What is windows form in c#?
What is private void in c#?
Is arraylist thread safe?
What does return do in unity?
Can we overload the main method in c#?
Why do we use lambda expression in c#?
What is the base class of all classes in c#?
What is main thread in c#?
In object oriented programming, how would you describe encapsulation in c#?
What is a trace and asset? Explain some differences?