mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-19 10:01:25 -04: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");