Monday, September 28, 2009

Programatically thrown Exceptions vs JVM thrown Exceptions

How do you know whether an exception is thrown by the application (programmatically?) or thrown by the JVM?

I understand as their name reveals definition. But my question is-- On which ground you will categorize any exception into these two. Any reasoning or concept?

For example: NullPointerException is JVM thrown whereas NumberFormatException is Programmatically thrown exception. Why?

No comments: