What are the types of exceptions in java?

Showing Answers 1 - 17 of 17 Answers

sakthivel

  • Oct 4th, 2005
 

Checked and unchecked exceptions.

  Was this answer useful?  Yes

praveen

  • Nov 13th, 2005
 

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

  Was this answer useful?  Yes

yazhini

  • 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

Anurag

  • Mar 27th, 2006
 

Exceptions are 2 types.

1.Checked

2.Uncheked

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

ram

  • 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

Mahesh

  • 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
(1)IOException,
(2)FileNotFoundException,
(3)ArithmeticException,
(4)NullPointerException,
(5)ArrayIndexOfBoundException
(6)NegativeArraySizeException,
(7)NumberFormatException

  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 :
1.Checked
2.Unchecked
3.Linked

  Was this answer useful?  Yes

charan

  • Jul 5th, 2012
 

2types..
1)Checked 2)Unchecked..
Checked exception identified at compile time..
Unchecked exceptions will identified at run time..

  Was this answer useful?  Yes

padmaja

  • 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

avinash

  • May 10th, 2013
 

There are two types

1.Checked
2.Unchecked

  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

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