Skip to content

Glossary: Java Basics

Throw

Also written: throw new

To create and raise an exception, as in `throw new IllegalArgumentException("...")`, so a mistake is reported where it happens.

Where the book teaches it

Related terms

Exceptioncatch