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

why we can't create an object for a static class?? what is the reason behind this?

4 Answers   HCL,


How to use reflection to call generic method?

0 Answers  


Does c# support a variable number of arguments?

0 Answers  


What is the syntax for calling an overloaded constructor within a constructor?

0 Answers  


How do you create empty strings in c#?

0 Answers  






How do you read an Excel sheet in C#?

0 Answers   MindCracker,


Say true or false,Private constructor have object or not?

7 Answers   IBM,


What is the Difference between read only and constant variables?

14 Answers   SilverKey,


What is the purpose of a namespace?

0 Answers  


Why do we need indexers in c#?

0 Answers  


What does the term immutable mean?

3 Answers   Satyam, Siebel Systems, Techno Labs,


hi my question is about understanding a text the user entered to a site , so i want to analyse that text looking for some specific items such as "honda" "shoffere" etc.. so if this site could help or could tell me where to go with such question ,i wonder. thanks

0 Answers  


Categories