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

How do you define a predicate?

486


What does string intern do?

488


What is the difference between the debug class and trace class? Documentation looks the same.

509


Explain the access modifiers in c#?

493


What is mvc firstordefault?

482






Are constructors inherited c#?

513


How does dependency injection work c#?

500


How to declares a two-dimensional array in C#?

574


Why abstract class can not be instantiated?

452


What is an indexer in c#?

544


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.

1283


What are data types with examples?

512


What is an example of delegation?

500


Which is faster dictionary or hashtable?

443


What is IL / CIL / MSIL?

667