Level: Basic/Intermediate
Series: Programming Tutorials
Length of video: 19 minutes
Prerequisites: Handling Exceptions with try catch
Purpose of tutorial:
This video is part of a series of tutorials that serve as an introduction to programming topics.
This video provides an explanation how to use the try-catch statement for input validation.
The technique presented here works like this: The try-catch statement is placed inside a loop. After intercepting an exception, the program is allowed to continue executing. This gives the program an opportunity to "try" again after the exception has been caught.