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

Can a dictionary have duplicate keys c#?

0 Answers  


What is Web.config?

0 Answers   Amazon,


Can we make a Static Constructor Parameterized? Give Reason with your answer

0 Answers  


Why can’t struct be used instead of class for storing entity?

0 Answers  


What?s the difference between System.String and System.StringBuilder classes?

1 Answers  






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 struct and class in c#?

0 Answers  


I have to create a windows application using C# .net to Modifiy the XML file. The application have to show the node and node value. plz help me.

3 Answers   Merrill Lynch,


Can you use all access modifiers for all types?

0 Answers  


What if an error occurs in Catch block, how can you prevent it?

2 Answers   IBM,


Is var a data type?

0 Answers  


What does Dispose method do with the connection object?

2 Answers  


Categories