Skip to content

Glossary: Java Basics

Exception

Also written: exceptions, thrown

An object describing an error that happens while the program runs, such as `NumberFormatException`. It is thrown, and if nothing catches it the program stops with a stack trace.

Where the book teaches it

Related terms

Stack tracecatchThrowCompile error