Q. Choose effective differences between ‘Boxing’ and ‘Unboxing’.
-
(A)
‘Boxing’ is the process of converting a value type to the reference type and ‘Unboxing’ is the process of converting reference to value type
-
(B)
‘Boxing’ is the process of converting a reference type to value type and ‘Unboxing’ is the process of converting value type to reference type
-
(C)
In ‘Boxing’ we need explicit conversion and in ‘Unboxing’ we need implicit conversion
-
(D)
Both ‘Boxing’ and ‘Unboxing’ we need implicit conversion
✅ Correct Answer: (A)
‘Boxing’ is the process of converting a value type to the reference type and ‘Unboxing’ is the process of converting reference to value type