Q14
What happens if you try to unbox a `null` reference in Java?
A.
It throws a `ClassCastException`
B.
It returns `null`
C.
It returns the default value for the wrapper class
D.
It throws a `NullPointerException`
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board