File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Java 8 in Action this week in the Java 8 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: 178

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


Mahtab Alam (OCJP )
Blogs : alamsql.blogspot.in , alammahtab.blogspot.in
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Thrown by API developer or JVM
 
Similar Threads
Need help in Exceptions
Exception: Programmtically or by JVM?
Exception ..
RunTimeException or checked Exception?
Exceptions thrown programatically or by JVM?