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 null an object java?

733


What’s the difference between unit, integration and functional testing?

816


Explain the scope of a variable.

835


What is the difference between static method and instance method in Java?

790


What is an immutable object? How do you create one in java?

800


What is java thread dump, how can we get java thread dump of a program?

766


which class is the wait() method defined in? : Java thread

706


What is lambda programming?

692


Is array passed by reference in java?

780


What does @override mean?

754


What is the difference between scrollbar and scrollpane?

816


Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.

697


Write a program to check for a prime number in java?

771


Is linked list a linear or non-linear data structure?

729


Can an unreferenced object be referenced again?

931