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
Explain the use of virtual, sealed, override, and abstract method?
How do I run managed code in a process?
If multiple interfaces are inherited and they have conflicting method names; What will happen ?
Which is faster array or arraylist in c#?
What is static classes?
What is object type in c#?
Difference between Value type & reference types ? and give the example in .Net?
What is the usage of OLE?
Why do we use overloading in c#?
What is tryparse c#?
What is executereader in c#?
How can I develop an application that automatically updates itself from the web?
What are destructors in C#?
How does the lifecycle of Windows services differ from Standard EXE?
What is the difference between dynamic and var in c#?