What are different types of Exceptions?.

Answer Posted / ranganathkini

There are three main types of Exceptions:

1. Checked execptions: which have to be handled by the code.
These represent avoidable exceptional conditions which can
be handled and recovered from.

2. Runtime Exceptions: which need not be handled by the
code. These represent unexpected exceptional conditions
which can be handled but not necessarily recover from.

3. Errors: which need not be handled by the code. These
represent severe unexpected exceptional conditions which
shud not be attempted to handle.

Is This Answer Correct ?    79 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of sockets in java?

775


What is the difference between menuitem and checkboxmenu item?

1100


What are the different types of sorting in java?

757


What is boolean query?

769


Is array passed by reference in java?

819


Can an interface have a constructor?

738


What is private protected in java?

801


Define jit compiler?

858


What is function and method in java?

751


What is the difference between a factory and abstract factory pattern?

912


What is thread life cycle?

740


Which object oriented concept is achieved by using overloading and overriding?

830


What is immutable state?

762


how come we know the object is no more used in the class?

6024


Do I need java on my computer?

753