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 are the steps to make an assembly to public?

0 Answers  


What namespaces are necessary to create a localized application?

2 Answers  


Define an escape sequence, name few strings in escape sequence?

0 Answers  


Is static class thread safe in c#?

0 Answers  


What is the advantage of singleton class?

0 Answers  


What are some of the commonly used commands in sqlcommand?

0 Answers  


Do extension methods have to be static?

0 Answers  


What is encapsulation in csharp?

0 Answers  


What is the difference b/w Arry.copy() and array.clone() method?

6 Answers  


Name some properties of array.

0 Answers  


What do you mean by object pooling?

0 Answers  


What does || mean in programming?

0 Answers  


Categories