posted 16 years ago
Hi,
Whether it is checked exception or unchecked exception, it will be raised during execution of program.
Unchecked exception may raise because of logical problems. But certain exceptions are raised because of environmental problems. For example: in case of I/O operations with file, there is a chance that file may be moved to some other location / may not be accessable. Program fails to execute because of these problems which are not because of program code. So compiler will take extra care, what extra efforts we have taken in order to handle the environmental problems. That is why certain exceptions are checked by compiler at compile time. Because those exceptions which are checked by compiler are known as checked exceptions.
ex: IOException and it's sub classes.
Regards,
Gopal.