Multiple choice technology programming languages

Unboxing of a null refrence type will return null.

  1. a. true

  2. b. false

  3. c. an exception is thrown

  4. d. depends

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

Unboxing extracts a value type from an object reference. If that reference is null, there's nothing to extract, causing a runtime exception (NullReferenceException in C#). You cannot unbox null because unboxing requires an actual boxed value to retrieve.