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
Explain namespaces in c#.
What is lazy in c#?
Contrast System.String and System.Text.StringBuilder classes?
Can we assign null value to integer?
What is expression c#?
Can list contain duplicates c#?
Is multilevel inheritance possible in c#?
Can I use parseint?
Is string null or empty?
Give examples for reference types?
What is parseexact c#?
Why do we use threads in c#?
What is parameterized constructor?
What's the difference between class and object?
What are handlers in c#?