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
Why is the singleton pattern considered to be an anti pattern?
Can Exception handling we can handle multiple catch blocks?
Are global variables initialized to zero?
Give a practical example of singleton class usage?
What is floating data type?
enlist some features of jdk.
Can we create a class inside a class in java?
What is Applet Stub Interface ?
What is ‘has a’’ relationship in java?
What’s the difference between callable and runnable?
What is constant in programming?
What are the benefits of java?
Which is better stringbuilder or stringbuffer?
What are the data types supported by java?
What is module with example?