Exceptions in Java

In Java, how an exception is raised we can divide exceptions into two categories-

  • JVM Exceptions
  • Programatic Exceptions

JVM Exceptions

Exceptions raised by JVM whenever a particular events occur are known as JVM Exceptions.

For Example- AirthmecticException, NullPointerException, etc.

Programmatic Exceptions

The exceptions which are raised explicitly by the programmer or developer to indicate that something goes wrong are known as programmatic Exceptions. These Exceptions are also known as User Defined Exceptions or customized Exceptions.

Similar Java Tutorials

Leave a Comment