Questions Related to qn6

Multiple choice qn6
  1. Converting reference type to value type

  2. Converting value type to reference type

  3. converting int to string

  4. none

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

Boxing converts a value type (like int, float) to a reference type (object) by wrapping it in an object. This allows value types to be treated as objects when needed. The reverse process is unboxing.