How do you intercept and thereby control exceptions | Eklavya Online

How do you intercept and thereby control exceptions

We can do this by using try/catch/finally blocks

You place the normal processing code in try block

You put the code to deal with exceptions that might arise in try block in catch block

Code that must be executed no matter what happens must be place in finally block