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 difference between private, protected, and public in C#?

557


In C#, explain the difference between overloading and overriding.

564


What is a framework in c#?

470


What is data dictionary in c#?

490


What is func c#?

502






What is dictionary and hashtable in c#?

469


What is difference between string and stringbuilder in c#?

465


Can we extend sealed class in c#?

491


Is a structure a class?

498


What is a c# delegate?

607


What does mean before a string in c#?

520


What is namespace explain with example?

457


What is the difference between protected and private?

467


What is verbatim string?

504


What is console programming language?

487