posted 12 years ago
Dear All CodeRanch Members,
This is my first post and i hope its not a stupid/repeated question.
According to API RuntimeException extends Exception. When we throw new RuntimeException(); we need not declare or handle it but when we throw new Exception(); we have to handle or declare it.
How is it possible because when we create our custom exception(i.e by extending Exception) it also becomes checked but why is RuntimeException unchecked even after extending Exception?
Is RuntimeException specially handled by JVM or there is some other reason?
Regards,
Vivek