What does it mean for an exception to be thrown by JVM or thrown progammaticaly. I thought of them as "Checked exceptions thrown progamatically and Unchecked exceptions are thrown by JVM". But in chapter 5 of K&B, Page no.370, NumberFormatException and IllegalArgumentException are shown as thrown programatically but these are Runtime Exceptions. Please clerify ..
If he has not done anything wrong in performing any logic..
I don't think still JVM can throw exception by it's own..
We can handle unchecked exceptions also if we know that a perticular piece of code can throw that exception and we do not want to stop execution in this scenario.In this case that exception will be called as thrown progamatically?
Originally posted by khushhal yadav:
But that is the programmer mistake, he should take care of all such things..
Originally posted by Riya Pant:
In this case, how can we draw a line between two JVM thrown and Programatically thrown exceptions.
But I want know, if I have taken care of all these things..
JVM by it's own choice can't throw exception..