Prepare for your Next Interview
This is a discussion on difference b/w Unchecked and checked Exception within the Java forums, part of the Software Development category; difference b/w Unchecked and checked Exception...
|
|||
|
Re: difference b/w Unchecked and checked Exception
Checked exception is an exception that you have to handle in your program.
EG: IOException Unchecked exceptions are not required to be handled in the program EG: NullPointerException |
|
|||
|
Re: difference b/w Unchecked and checked Exception
Checked Exceptions are checked by the compiler during the compile time so if you have not handled (using try/catch or throws) the checked exception you wud not be able to complie the class. Ex:IOException
Unchecked exceptions are the exception that are not checked by the complier and will be thrown only at run time by the JVM itself for ex: NullPointerException, ArrayIndexOutOfBounds exception -hope it helps. |
|
|||
|
Re: difference b/w Unchecked and checked Exception
The exceptions which occur outside try block and remain undetected are known as unchecked exceptions.If such kind of exception occurs then the function containing the exception gets terminated immediately by calling abort() function.
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How many test cases can be checked in 1 day. | chand05 | Testing Issues | 2 | 2 Weeks Ago 07:26 PM |
| exception handling | amaravadi.krishna81 | C# | 2 | 03-24-2008 12:14 PM |
| difference b/w Exception and Error | noman_mazher | Java | 10 | 12-19-2007 05:30 AM |
| Exception...... | Sampath_Java | Java | 1 | 09-03-2007 03:55 AM |
| Exception Testing | vijenjoy2k2 | Testing Issues | 3 | 06-04-2007 01:58 AM |