What is difference between checked and unchecked (RuntimeException) exceptions

Techie

Dec 2nd, 2005

Checked exceptions are types of exceptions, which are beyond the control of programs.say I/O exception, RemoteException.This could happen, when the resource you were looking was not found(e.g file missing or remote server is down).Unchecked exceptions are Runtime excpetions, which happens due to programmatic errors,wrong data etc.,

vivek barsagadey

Dec 9th, 2005

We have two type of exception , checked and unchecked. checked exc. allways says that it is return in try catch or throws block. all user define exception come under this . and unchecked say there is no need to write code inside try catch block.......

Checked Exceptions are not because of program errors, may be some out side sources,like file open exception.(may likely to be occured) Unchecked exceptions are because of program errors like array index out of bounds, NUll pointer ,Bad Cast exceptions etc. Checked Exceptions are checked at compile time,where as unchecked exceptiosn are at runtime.

Vipul songra

Jul 18th, 2011

The differences between checked and unchecked exceptions are:

Checked exceptions must be explicitly caught or propagated as described in Basic try-catch-finally Exception Handling. Unchecked exceptions do not have this requirement. They don't have to be caught or declared thrown.

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.