In many programming languages, if you try to perform an “illegal action” the program will crash because you’ve attempted the impossible (like dividing by zero) or the disallowed (like accessing memory you’re not supposed to).
The **try** block basically says “check this code for illegal actions, and if there are any, go to the **catch** block. If there aren’t any, do the code.”
Latest Answers