Java - Exceptions

Overview

There are the following kinds of Java exceptions:

  • checked exceptions - exceptions that need to be catched or declared, derived from Exception class
  • unchecked exceptions: errors - exceptions that are caused by program environment - they do not have to be catched/declared, derived from Error class
  • unchecked exceptions: runtime exceptions - exceptions that are caused by program (probably invalid) logic - they do not have to be catched/declared, derived from RuntimeException class

Introduction

How and when to use exceptions

Specific topics

See also

Share

follow