GeekInterview.com
Series: Subject: Topic:
Question: 1026 of 2109

What are the types of exceptions in java?

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

Answered On : Oct 4th, 2005

Checked and unchecked exceptions.

  
Login to rate this answer.
praveen

Answered On : Nov 13th, 2005

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

  
Login to rate this answer.
yazhini

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.
Anurag

Answered On : Mar 27th, 2006

Exceptions are 2 types.1.Checked2.UnchekedAll the exception for that compiler doesn't care are comes under unchecked exception i.e. ArithmaticException, ArrayIndexOutofBoundexp etcExceptions 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.
ram

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 exceptionsUnchecked 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 found2. 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.
Mahesh

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.
S.Muthuselvam

Answered On : Apr 6th, 2009

View all answers by S.Muthuselvam

There are two Process of Exception Flow Checked & Unchecked it one of common conditionhere Java used Type of Exception Following Types (1)IOException,
(2)FileNotFoundException,
(3)ArithmeticException, (4)NullPointerException,
(5)ArrayIndexOfBoundException (6)NegativeArraySizeException,
(7)NumberFormatException

  
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 exception2-Unchecked exceptionChecked execption are those which are check before the complilation and these are not the subclasses of RuntimeException. Eg - ArrayIndexOutOfBoundsExceptionUnchecked 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 :
1.Checked
2.Unchecked
3.Linked

  
Login to rate this answer.
charan

Answered On : Jul 5th, 2012

2types..
1)Checked 2)Unchecked..

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

  
Login to rate this answer.
padmaja

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.
avinash

Answered On : May 10th, 2013

There are two types1.Checked2.Unchecked

  
Login to rate this answer.
Pyae Arkar Naing

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

  
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

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

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.