0% found this document useful (0 votes)
8 views2 pages

Java Checked and Unchecked Exceptions List

The document discusses two types of exceptions in Java: unchecked exceptions such as ArithmeticException and ArrayIndexOutOfBoundsException which occur due to programming errors; and checked exceptions like IllegalAccessException and InterruptedException which are checked at compile-time and occur due to abnormal external conditions. It provides examples of each exception type and briefly explains their meanings.

Uploaded by

InnovativeIIE
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

Java Checked and Unchecked Exceptions List

The document discusses two types of exceptions in Java: unchecked exceptions such as ArithmeticException and ArrayIndexOutOfBoundsException which occur due to programming errors; and checked exceptions like IllegalAccessException and InterruptedException which are checked at compile-time and occur due to abnormal external conditions. It provides examples of each exception type and briefly explains their meanings.

Uploaded by

InnovativeIIE
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Exception

UnChecked Exception
Exception ArithmeticException ArrayIndexOutOfBoundsException IllegalArgumentException ClassCastException IndexOutOfBoundsException NullPointerException NumberFormatException Meaning Arithmetic error, such as divide-by-zero.
Array index is out-of-bounds.

Illegal argument used to invoke a method. Invalid cast. Some type of index is out-of-bounds. Invalid use of a null reference. Invalid conversion of a string to a numeric format.

Checked Exception
Exception
IllegalAccessException InterruptedException NoSuchFieldException NoSuchMethodException CloneNotSupportedException

Meaning
Access to a class is denied. One thread has been interrupted by another thread. A requested field does not exist. Requested method does not exist. Attempt to clone an object that does not implement the Cloneable interface.

You might also like