

McqMate
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 |
View all MCQs in
Java ProgrammingNo comments yet