Try and Catch Statements
Introduction:
This page will teach you about the Try and Catch statements in Java.
What is a Try and Catch statement?
A Try and Catch statement is a very handy statement which allows the program to handle errors and warnings thrown by the scripts. Each Try and Catch statement contains the block of script to handle, a single or multiple exception(s) followed by block(s) of script which are executed if that specific exception is thrown by the handled script.