explain the classification of exception and hoew to handle
the exceptions

Answers were Sorted based on User's Feedback



explain the classification of exception and hoew to handle the exceptions..

Answer / bindhu

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. It is also known as Normal Exception.
Example: FileNotFoundException,ClassNotFoundException, etc..

2> Unchecked exceptions

Unchecked Exceptions are also known as runtime exceptions
as they are identified during the runtime of the program.
Example: ArithmeticException etc..

Is This Answer Correct ?    11 Yes 2 No

explain the classification of exception and hoew to handle the exceptions..

Answer / ravikiran

Checked and unchecked exceptions
We can handle the exception by make use of
try/catch/finally (or) by using throws clause

Is This Answer Correct ?    4 Yes 3 No

Post New Answer

More Core Java Interview Questions

waht You know about thread programming?

1 Answers  


Can keyword be used as identifier?

0 Answers  


What is the difference between array and arraylist? what is the difference between arraylist and linkedlist?

8 Answers   EDS, Matrix,


What is the difference between a synchronized method and a synchronized block?

0 Answers  


what is the difference between the "protected and default" modifiers?

8 Answers  






Does java have a compiler?

0 Answers  


why to use transient variables when static variables can be used for Serialization

4 Answers  


What is the final variable?

0 Answers  


what is hashmap& hashtable with example?

1 Answers   CTS,


What is the purpose of abstract class?

0 Answers  


Is minecraft 1.15 out?

0 Answers  


WAP to illustrate the use of interface

2 Answers  


Categories