This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question over NumberFormatException

 
Jeena Jeen
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Chapter 5 of K&B Java 5 (Page 370) its mentioned that NumberFormatException is Programmatically thrown Exception.
But if I see this in java spec then it extends from IllegalArgumentException which extends from RuntimeException .
So this should be a JVM exception rather than programmatically thrown Exception.
Same is the case of IllegalArgumentException.
Doesn't programmtically thrown Exception means Checked/compileTime Exception? Or may be I am mixing up these two things?
 
Eugene Rabii
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Something really nice I have seen from a Senior from SUN : (!checkedException)!=unchekedException...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic