PRO192_-_FA_2024_-_FE_2969.webp
B

PRO192_-_FA_2024_-_FE_2969.webp

Kizspy | Question: 47 (Choose 1 answer)
How does the try-catch-finally statement work?
A. The code inside the try block is executed, and if an exception occurs, it is caught and handled by the catch block. The code inside the finally block is executed regardless of whether an exception occurred or not.
B. The code inside the try block is executed, and if an exception occurs, it is caught and handled by the finally block. The code inside the catch block is executed regardless of whether an exception occurred or not.
C. The code inside the try block is executed, and if an exception occurs, it is caught and handled by the catch block. The code inside the finally block is executed only if an exception occurred.
D. The code inside the try block is executed, and if an exception occurs, it is caught and handled by the catch block. The code inside the finally block is executed only if an exception occurred and was not caught by the catch block.

Thông tin

Category
PRO192
Thêm bởi
Bích Thủy
Ngày thêm
Lượt xem
4,215
Lượt bình luận
8
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom