File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Important point regarding Autoboxing

 
ankur rathi
Ranch Hand
Posts: 3830
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1364
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Goes boom.

 
ankur rathi
Ranch Hand
Posts: 3830
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1364
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's always another question, eh?

Looks like it's calling intValue()


[ March 04, 2005: Message edited by: Carol Enderlin ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic