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

Describe the process of “exception handling implementation” in c#?

711


Why do we use dataset in c#?

686


Can we extend sealed class in c#?

671


What are most desktop applications written in?

669


Which attribute is used in order that the method can be used as webservice?

715


What is the diff between System.String and System.Text.StringBuilder classes?

740


How is method overriding different from overloading?

759


What's your approach to fetch static data in your windows form application?

717


How do you create empty strings in c#?

709


Does unity use c++ or c#?

657


How many types of serialization are there in c#?

638


What is asax file in c#?

729


What are native functions?

649


What is namespace in oops?

658


How we convert private assembly into public assembly?

706