1. Write a program that demonstrates the behavior of try-catch-finally blocks when
a. The try block causes an exception
b. The catch block causes a runtime exception
c. No exception occurs
2. If the try block of a try-catch-finally sequence contains a return statement, the finally block executes before the return. Write a program that demonstrates this behavior.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here