Number of questions 1,751
Number of tests completed 252,495
Number of questions answered 3,765,643
Number of registered users 19,174
Sign In | Register
Skip Navigation Links
Question: Unboxing of a null reference type will return a null.
Answer1: true
Answer2: false
Answer3: an exception is thrown
Answer: an exception is thrown

Explaination: Boxing Implicit conversion of a value type (int, char etc.) to a reference type (object), is known as Boxing. In boxing process, a value type is being allocated on the heap rather than the stack. Unboxing Explicit conversion of same reference type (which is being created by boxing process); back to a value type is known as unboxing. In unboxing process, boxed value type is unboxed from the heap and assigned to a value type which is being allocated on the stack.
Link: External Explaination

Correctly answered: 35977
Incorrectly answered: 20298
Terms of Use Ver. 2.0.6783.38332