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
How do you define a predicate?
What does string intern do?
What is the difference between the debug class and trace class? Documentation looks the same.
Explain the access modifiers in c#?
What is mvc firstordefault?
Are constructors inherited c#?
How does dependency injection work c#?
How to declares a two-dimensional array in C#?
Why abstract class can not be instantiated?
What is an indexer in c#?
how to compare numbers and dispaly the largest ? *first thing I wanted to do is to input how many numbers to be compared *and then analyzed the largest then display it.
What are data types with examples?
What is an example of delegation?
Which is faster dictionary or hashtable?
What is IL / CIL / MSIL?