Master java skills

Java Exception Handling

Exception handling is a way of handling unwanted situations called exceptions in Java. Now, the question arises what is an exception. So, an exception is an unwanted situation which might occur at runtime. If not handled properly, the expected execution of the java program will be affected and the desired result may not be achieved.

In the subsequent pages, we will learn about the following:

  1. What is an Exception
  2. Exception class and its hierarchy
  3. Different types of exceptions
  4. Ways to handle exceptions
  5. try-catch, throw, throws and finally
  6. Exceptions and Errors

Exception class hierarchy

Next Topic