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 null an object java?
What’s the difference between unit, integration and functional testing?
Explain the scope of a variable.
What is the difference between static method and instance method in Java?
What is an immutable object? How do you create one in java?
What is java thread dump, how can we get java thread dump of a program?
which class is the wait() method defined in? : Java thread
What is lambda programming?
Is array passed by reference in java?
What does @override mean?
What is the difference between scrollbar and scrollpane?
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
Write a program to check for a prime number in java?
Is linked list a linear or non-linear data structure?
Can an unreferenced object be referenced again?