Java: Wrapper Types and Autoboxing
How would you explain the autoboxing trap in `Integer quantity = null; int count = quantity;` in an interview?
Java will unbox `null` and throw a `NullPointerException`. Wrapper-to-primitive conversion looks small in code, but it still changes…
View Card →