adspace


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

Why can't we use a static class instead of singleton?

952


Which namespaces are necessary to create a localized application?

1140


What is expression tree in c#?

997


What is an abstract class c#?

967


How to assign Null value to Var?

1062


How do you inherit a class into other class in c#?

992