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

What is the implicit name of the parameter that gets passed into the class set method?

0 Answers  


What is form feed in c#?

0 Answers  


What is shared inheritance

3 Answers   IGT,


What?s an abstract clas?

5 Answers   Mind Tree,


What is abstract class ?

5 Answers   Digital GlobalSoft,






What is the difference between a variable and a literal?

0 Answers  


What is the difference between == and object.equals?

0 Answers  


What are get and set in c#?

0 Answers  


How can you sort the elements of the array in descending order?

2 Answers  


What are destructors in C#?

1 Answers   TryTechnicals Pvt Ltd,


What is deferred execution?

0 Answers  


Why do we need singleton class in c#?

0 Answers  


Categories