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.



Integer at long type variable are not object.Support your answer with example.And explain the tech..

Answer / 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

More C Sharp Interview Questions

How can you use abstract class and interface?

0 Answers   Accenture,


Explain why do I get an error (cs1006) when trying to declare a method without specifying a return type?

0 Answers  


What is the difference between a field and a property in c#?

0 Answers  


What is binary search tree in data structure?

0 Answers  


How can we Achieve Late binding in C#.Can any give one example.

5 Answers   Value Labs,


What?s the difference between an interface and abstract class?

2 Answers   Patni,


Can we extend sealed class in c#?

0 Answers  


What is data type in c# with example?

0 Answers  


Why would you use a class property in c#?

0 Answers  


Can enum be null c#?

0 Answers  


how to use msflexgrid in asp.net

1 Answers   nSoft, Unichem,


What is boxing and unboxing in c#?

0 Answers  


Categories