Meaningless Drivel is fun!*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Important point regarding Autoboxing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Important point regarding Autoboxing" Watch "Important point regarding Autoboxing" New topic
Author

Important point regarding Autoboxing

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Conversions between primitives and wrapper classes now happen automatically
Drastically reduces the coding overhead
The compile inserts the extra code
Sorry, no null support

Got from the tutorial ...

please can any body explain me 4th point ???

thanks .
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
Goes boom.

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Thanks a lot Carol .

we are getting NullPointerException because at the time of Auto Inboxing it internally calls intValue ( xxxValue ) & here everything goes wrong ..

Right ?
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
There's always another question, eh?

Looks like it's calling intValue()


[ March 04, 2005: Message edited by: Carol Enderlin ]
 
GeeCON Prague 2014
 
subject: Important point regarding Autoboxing