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 an enumerator in c#?
What is boolean method?
What's the difference between WindowsDefaultLocation and WindowsDefaultBounds?
What is an xsd file?
Why is .net so popular?
What is the difference between interface and functional interface?
In .NET which is the smallest unit of execution?
Distinguish between array and arraylist in c#?
What is datacontract in c#?
Is multiple inheritance possible in c#?
What does question mark mean in c#?
If you want to write your own dot net language, what steps you will u take care?
How can you prevent escaping on backslashes in C# with string definitions?
What happens if you add duplicate elements to a set?
What are primitive data types in c#?