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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is function and method in c#?

503


What are nested classes in c#?

540


Why do we use namespace in c#?

512


Explain how can you clean up objects holding resources from within the code?

465


Explain the difference between “system.array.clone()” and “system.array.copyto()” in c#?

502






What are the types of serialization?

503


How to create multi-dimensional array?

593


What are the benefits of using windows services:

534


What is the difference between static class and singleton class in c#?

479


What is session management in c#?

520


What is a console device?

473


What is the use of return in c#?

482


What is ildasm and obfuscator in net?

534


Can you have more than one namespace in c#?

483


Is vs as c#?

506