aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Thrown by API developer or JVM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Thrown by API developer or JVM" Watch "Thrown by API developer or JVM" New topic
Author

Thrown by API developer or JVM

Mahtab Alam
Ranch Hand

Joined: Mar 28, 2012
Posts: 249

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


Oracle Java Programmer , Oracle SQL Expert , Oracle Java Web Component Developer
Rachel Glenn
Ranch Hand

Joined: Oct 24, 2012
Posts: 95
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!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Thrown by API developer or JVM