Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Thrown by API developer or JVM  RSS feed

 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which are most commonly thrown by an API developer or application developer as opposed to be thrown by JVM
Answers are:
IllegalArgumentException
IllegalStateException
NumberFormatException


I can`t understand what it means to be thrown by API developer
 
Rachel Glenn
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mahtab Alam wrote:Which are most commonly thrown by an API developer or application developer as opposed to be thrown by JVM
Answers are:
IllegalArgumentException
IllegalStateException
NumberFormatException


I can`t understand what it means to be thrown by API developer


What they mean is when you actually write a lne of code like this:



I don't think the Sierra and Bates book did a very good job of explaining the difference between JVM versus developer thrown exceptions and why a particular exception is thrown by JVM or developer.

I hope the example helps!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!