Exception

Hi ,

Unchecked exception means we have to either declare or handle the exception.By declaring the exception who will handle that exception?is it JVM? And for Unchecked exception it is not necessary to declare the exception ,in such cases who will handle that kind of exceptions.?

please reply

Thanks

Vish

[335 byte] By [vishuwillbea] at [2007-11-27 11:47:35]
# 1

> Hi ,

> Unchecked exception means we have to either declare

> or handle the exception.

Other way round. Checked exceptions mean that

< By declaring the exception

> who will handle that exception?is it JVM?

Your code will! I think you've actually got yourself a bit confused, or have mis-translated your question. It's not making an enormous amount of sense

> And for

> Unchecked exception it is not necessary to declare

> the exception ,in such cases who will handle that

> kind of exceptions.?

If you don't handle them, they get passed all the way back up the method call stack until the JVM gets hold of it, and the thread from which the exception was thrown dies

georgemca at 2007-7-29 18:14:09 > top of Java-index,Java Essentials,Java Programming...