try/catch
In this lesson, you'll learn how the try/catch block is used via examples.
We'll cover the following
Introduction
The try/catch
performs an operation and should an error occur, will transfer control to the catch
block. Try keyword is used to monitor the exceptions which are there in our code. Followed by the try
block catch
block should be there.
Get hands-on with 1200+ tech skills courses.