| Author |
unboxing issues
|
Adeyemi Adeseye
Greenhorn
Joined: Jan 10, 2009
Posts: 27
|
|
can someone explain why this code gives a null pointer exception at runtime
|
SCJP 6.0 (83%)
|
 |
Kamil Wojcik
Ranch Hand
Joined: May 19, 2008
Posts: 78
|
|
|
because default value for Integer (it's an Object!) is NULL
|
SCJP 6.0 Passed | SCWCD Passed | PSM in progress...
|
 |
Adeyemi Adeseye
Greenhorn
Joined: Jan 10, 2009
Posts: 27
|
|
|
oh, tanks, that skipped my mind.
|
 |
 |
|
|
subject: unboxing issues
|
|
|