explain the classification of exception and hoew to handle
the exceptions

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is space a character in java?

512


What is the benefit of inner / nested classes ?

524


What is the use of math abs in java?

546


Describe what a thread-local variable is in java?

565


What is natural ordering in java?

521






How to implement an arraylist in java?

504


What is a finally block? Is there a case when finally will not execute?

544


What is an array length?

497


Is 0 true or false?

510


How does enum work in java?

542


How many bits is a char?

533


Write a method to check if input string is palindrome?

579


What is the difference between iterator and list iterator?

531


What do you understand by the term string pool?

561


How you can force the garbage collection?

534