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!