Explanation: the statements in the finally block will always be executed, whether an exception is thrown or not. this clause is used to close the resources used in a code.
Q. Which of the following blocks will be executed whether an exception is thrown or not?
β
Correct Answer: (C)
finally
Explanation by: Mr. Dubey
the statements in the finally block will always be executed, whether an exception is thrown or not. this clause is used to close the resources used in a code.
Discussion
Question Analytics
425
Total Visits
2 y ago
Published
Mr. Dubey
Publisher
85%
Success Rate