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
Is space a character in java?
What is the benefit of inner / nested classes ?
What is the use of math abs in java?
Describe what a thread-local variable is in java?
What is natural ordering in java?
How to implement an arraylist in java?
What is a finally block? Is there a case when finally will not execute?
What is an array length?
Is 0 true or false?
How does enum work in java?
How many bits is a char?
Write a method to check if input string is palindrome?
What is the difference between iterator and list iterator?
What do you understand by the term string pool?
How you can force the garbage collection?