Multiple choice technology programming languages

Casting from reference type to value or vice versa is called as

  1. Casting/Uncasting

  2. Boxing/Unboxing

  3. Packing/Unpacking

  4. Stack & Heap Conversion

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Boxing converts a value type to a reference type by storing it on the heap and creating a reference to it. Unboxing reverses this by extracting the value type from the reference. The other terms like packing/uncasting are not standard terminology in .NET or Java.