I was reading jls §5.1.7 and it says that there are 9 types of boxing, 9th one being Boxing From the null type to the null type
Then I read that Unboxing Conversion of null
throws a NullPointerException
. Ok that is obvious. Then why boxing of null
does not throws a NullPointerException
and what is the use of boxing null
value?