Font size:
Print
Question: Which of the following is true?
1. A finally block is executed before the catch block but after the try block.
2. A finally block is executed, only after the catch block is executed.
3. A finally block is executed whether an exception is thrown or not.
4. A finally block is executed, only if an exception occurs.
Check Answer
1. A finally block is executed before the catch block but after the try block.
2. A finally block is executed, only after the catch block is executed.
3. A finally block is executed whether an exception is thrown or not.
4. A finally block is executed, only if an exception occurs.
Check Answer