Q.

When is a finally {} block executed?

A. Only when an exception is thrown by a try block
B. Only when there are no exceptions thrown
C. At the end of a program
D. Always after the execution of a try block, regardless of whether or not an exception is thrown
Answer» D. Always after the execution of a try block, regardless of whether or not an exception is thrown
2.5k
0
Do you find this helpful?
31

View all MCQs in

Java Programming

Discussion

No comments yet