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


Please Help Members By Posting Answers For Below Questions

What is expression tree in c#?

478


Why singleton class is sealed?

477


Is typeof c#?

530


What is base class in c#?

535


What is difference between ienumerable and list in c#?

443






What is windows form in c#?

537


What is private void in c#?

518


Is arraylist thread safe?

487


What does return do in unity?

539


Can we overload the main method in c#?

476


Why do we use lambda expression in c#?

500


What is the base class of all classes in c#?

502


What is main thread in c#?

496


In object oriented programming, how would you describe encapsulation in c#?

535


What is a trace and asset? Explain some differences?

697