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

what is difference between type 4 driver and type 1 driver?

2 Answers   CMC, CTS, IBM, JK Technosoft, Napier Healthcare,


What do you mean by JVM?

0 Answers   Ericsson,


What is a instance variable?

0 Answers  


What are listeners in java and explain ?

2 Answers   TCS,


How Marker Interfaces are instruct to complete the desired need ?

2 Answers  


What is meant by method?

0 Answers  


Why is java multithreaded?

0 Answers  


How to sort numbers in java without array?

0 Answers  


What is the advantage of preparedstatement over statement?

0 Answers  


What is the purpose of static methods and static variables?

0 Answers  


What is finalize() function in java?

0 Answers  


Enlist diffrent types of inheritance supported by java?

0 Answers  


Categories