Java Throw Exception

The throw keyword in Java is used to “throw” an exception.

By using Java throw keyword, we can throw either checked nor unchecked exceptions. The throw keyword is mainly used to throw custom exception.

Syntax of the Java throw keyword is written below :

Continue reading Java Throw Exception