mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-21 15:03:21 -05:00
335 B
335 B
title
| title |
|---|
| Throw |
throw
The Java throw keyword is used to explicitly throw an exception. You can throw either checked or unchecked exception in java.
Example:
throw new ArithmeticException("/ by zero not permitted");