Series: Subject: Topic:
Question: 730 of 994

What are the types of exceptions in java?

Asked by: Interview Candidate | Asked on: Sep 12th, 2005
Showing Answers 1 - 16 of 16 Answers

Answered On : Oct 4th, 2005

Checked and unchecked exceptions.

Login to rate this answer.

Answered On : Nov 13th, 2005

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

Login to rate this answer.

Answered On : 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

Yes  1 User has rated as useful.
Login to rate this answer.

Answered On : 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

Yes  2 Users have rated as useful.
Login to rate this answer.

Answered On : 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

Yes  1 User has rated as useful.
Login to rate this answer.
udhaya ganesh

Answered On : 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.

Login to rate this answer.
bhuendra singh

Answered On : 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.

Login to rate this answer.

Answered On : Jul 25th, 2007

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

Login to rate this answer.

Answered On : Apr 6th, 2009

View all answers by S.Muthuselvam

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





Login to rate this answer.

Two Types:
1. Checked Exception
2. Unchecked Exception

Login to rate this answer.
sunil gupta

Answered On : Jun 21st, 2010

View all answers by sunil gupta

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

Login to rate this answer.
Sandeep Singh

Answered On : 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

Login to rate this answer.
Vamsi Varma

Answered On : Mar 6th, 2012

Three types :

Login to rate this answer.

Answered On : Jul 5th, 2012

1)Checked 2)Unchecked..

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

Login to rate this answer.

Answered On : Dec 11th, 2012

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

Login to rate this answer.

Answered On : May 10th, 2013

There are two types


Login to rate this answer.

Give your answer:

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

Related Open Questions



twitter fb Linkedin GPlus RSS


Interview Question

 Ask Interview Question?


Latest Questions

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.