explain the classification of exception and hoew to handle
the exceptions
Answers were Sorted based on User's Feedback
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 |
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 |
What is finally in Java?
What is space character in java?
What is a parameter example?
Do you know thread pools?
What code optimizations techniques you follow in general practice?
2 Answers Accenture, TCS, Wipro,
Is string is a keyword in java?
What is integer size in java?
What is the program development process?
What is difference between length and length() method in java ?
Can we restart a thread already started in java?
How can a gui component handle its own events?
What is the inheritance?