Integer at long type variable are not object.Support your
answer with example.And explain the technique to convert from
value type to reference type and vice-versa.

Answer Posted / sujit

int x=10;
object obj=x;//called boxing
x=convert.ToInt32(obj);// called unboxing

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dll hell, and how does .net solve it?

529


What is difference between static and constant variable?

525


What are the new features in c# 2.0?

515


Does c# support a variable number of arguments?

604


Is int a class in c#?

497






What does string intern do?

484


Is int reference type c#?

499


What is global namespace in c#?

479


Why is lazy loading?

493


What is multicast delegate explain with example?

457


How can you access a private method of a class?

506


What do u mean by thread safe?

493


How does bubble sort work?

504


What are the three types of predicates?

451


What is a nullreferenceexception?

552