Interviews3 answers
what is boxing and unboxing, explain it with examples?
3 Answers
To convert datatype in to object called boxing
&visa
Mukesh KumarPosted Sep 10, 2017, 3:53 AM EDT
Boxing = Convert from value type variable to reference type variable , ex : Int a=10 (Value Type), object o=a; (object is reference type).
UnBoxing = Conver a variable from reference to value type, ex : int c= (int)o;
Komara ReddyPosted Feb 16, 2017, 9:43 PM EST
Boxing = Value Type To Object Type ;
Ubboxing = Object Type to Value Type;
yogesh lodhaPosted Feb 16, 2017, 7:01 PM EST

