What are the types of exceptions in java?

Showing Answers 1 - 0 of 0 Answers


  • Oct 4th, 2005

Checked and unchecked exceptions.

  Was this answer useful?  Yes


  • Nov 13th, 2005

There are TWO of Exceptions (i.e Run time and Compile Time)

  Was this answer useful?  Yes


  • Dec 12th, 2005

There are many types of exceptions in java: Some of the common exceptions are: 1)Arithmetic Exception -very common exception which occurs when there is any error in the arithemetic operation u specify. 2)NullPointer Exception - happens if u specify a wrong or unavailable destination 3)ArrayIndexOutOfBounds Exception - happens if u point the unavailable index of the array 4)NegativeArraySizeException -happens when u specify negative size for array 5)NumberFormat Exception -happens in the case of wrong number format


  • Mar 27th, 2006

Exceptions are 2 types.



All the exception for that compiler doesn't care are comes under unchecked exception i.e. ArithmaticException, ArrayIndexOutofBoundexp etc

Exceptions which needs to be defined in throws clause of a method r checked exception,ie.sevletException,ClassNotFoundExp,NoSuchFieldException etc


  • May 19th, 2006

There are two types of exceptions in java

1> Checked exceptions

checked exceptions are also known as compile time exceptions as they are identified during compile time of the program.Exception and all the subclasses of Exception class are checked exceptions

2> Unchecked exceptions

Unchecked Exceptions are also known as runtime exceptions as they are identified during the runtime of the program. class Runtime Exception and all the subclasses of Runtime Exception are unchecked Exceptions

udhaya ganesh

  • May 16th, 2007

There are 2 Broad categories,
1. Checked Exception -> Occurs while prg execution.
Eg) File not found
2. UnChecked Exception -> It's not reasonable. Occurs at runtime.
Eg) Accessing End of an array.

  Was this answer useful?  Yes

bhuendra singh

  • Jun 17th, 2007

There are 2 types of exception in Java
(1) Check like an network failure or any database problem shows this types of exception.

(2 ) Unchecked exception that is at run time exceptions.

  Was this answer useful?  Yes


  • Jul 25th, 2007

Exception means runtime error and error occures during  compile time.So exception could not be an error and viceversa. 

  Was this answer useful?  Yes

There are two Process of Exception Flow
Checked & Unchecked it one of common condition
here Java used Type of Exception Following Types

  Was this answer useful?  Yes

sunil gupta

  • Jun 21st, 2010

There are only two type of exception in Java
1-Checked exception
2-Unchecked exception

Checked execption are those which are check before the complilation and these are not the subclasses of RuntimeException. Eg - ArrayIndexOutOfBoundsException

Unchecked exception are those which are not check at the compile time and are the subclasses of the RunTimeException class

  Was this answer useful?  Yes

Sandeep Singh

  • Jul 27th, 2011

Exceptions in java is classified on the basis of run time or compile time
on the basis of run time java exception is of two type
1.synchronous exception
2.asynchronous exception
=>on the basis of compile time
1. checked exception
2.unchecked exception

  Was this answer useful?  Yes

Vamsi Varma

  • Mar 6th, 2012

Three types :

  Was this answer useful?  Yes


  • Jul 5th, 2012

1)Checked 2)Unchecked..

Checked exception identified at compile time..
Unchecked exceptions will identified at run time..

  Was this answer useful?  Yes


  • Dec 11th, 2012

Unchecked exceptions are you are not understood at compile time. It is a critical problem for the user.

  Was this answer useful?  Yes


  • May 10th, 2013

There are two types


  Was this answer useful?  Yes

Pyae Arkar Naing

  • Jun 24th, 2014

1-> The Checked Exceptions
2-> Errors
3-> Runtime Exceptions
Otherwise Errors and Runtime Exceptions fall into the category of unchecked exceptions.
Therefore, the types of exceptions in JAVA are (1) Checked Exceptions
(2) Unchecked Exceptions.

  Was this answer useful?  Yes

Pritam khandal

  • Nov 29th, 2014

There are 2 Broad categories,
1. Checked Exception -> Occurs while prg execution.
Eg) File not found
2. UnChecked Exception -> Its not reasonable. Occurs at runtime.
Eg) Accessing End of an array.

  1. import java.io.*;

  2. public class ExcepTest{


  4.    public static void main(String args[]){

  5.       try{

  6.          int a[] = new int[2];

  7.          System.out.println("Access element three :" + a[3]);

  8.       }catch(ArrayIndexOutOfBoundsException e){

  9.          System.out.println("Exception thrown  :" + e);

  10.       }

  11.       System.out.println("Out of the block");

  12.    }

  13. }

  Was this answer useful?  Yes

Alok Yadav

  • Jan 29th, 2015

there are two types exceptions in java. one is checked exception where try catch block is mandatory and second is unchecked exception where try catch block is optional.checked exception occurs at compile time while unchecked we know at run time.

  Was this answer useful?  Yes

Nagamani chowdary.potla

  • Mar 26th, 2016

There are two types of exceptions:checked and unchecked.

Checked means need to verify every statement in the program, that is catch block has some set of states.

Unchecked means here no need to check the statements directly we can execute programs. Here catch block not contain any statements.

  Was this answer useful?  Yes


  • Jun 16th, 2016

Two type of exception
Checked Exception -> Compile time exception
Unchecked Exception -> Run time exception

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Answer Question

Click here to Login / Register your free account

Send   Reset


Related Answered Questions


Related Open Questions