👉   Buy a JavaOne ticket for $400 off, get one for free! Use code:   GODUKE   (details here)   👈

Exceptions

The Java programming language uses exceptions to handle errors and other exceptional events. This tutorial describes when and how to use exceptions.


  1. What Is an Exception?

    Introducing what exceptions are.

  2. Catching and Handling Exceptions

    How to use try, catch and finally.

  3. Throwing Exceptions

    How to throw exceptions in your programs.

  4. Unchecked Exceptions — The Controversy

    When to Use Checked or Unchecked Exceptions



Back to Tutorial List