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 the default size of set in java?

0 Answers  


Differences between jdk 1.4 and 1.5

6 Answers   SoftSol, TCS, Wipro,


Does constructor be static?

0 Answers  


Define packages in java?

0 Answers  


Tell me the difference between an applet and a Japplet?

1 Answers  






What do you understand by an io stream?

0 Answers  


What is deadlock and how to avoid this?

2 Answers  


What is data abstraction? Elaborate with example?

4 Answers   BMC, TCS,


What is constant in programming?

0 Answers  


What is the base class of all exception classes in java?

0 Answers  


What are 3 boolean operators?

0 Answers  


Can we have any other return type than void for main method?

0 Answers  


Categories