ramesh maredu wrote:Hi Vivek,
Welcome to java ranch.
I think the compiler treats the exceptions differently when they extend Exception directly. As the checked exceptions are meant to be handled you will be forced to catch them or let the caller method handle them. In case of run time exceptions then compiler don't enforce any rule because they are not meant to be handled (probably user may not be able to do anything if they occur, the better way would be make sure run time exceptions may not occur).
Hi Ramesh,
Thanks a lot i finally got my doubts cleared
