CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 14: 312-96: Certified Application Security Engineer (CASE) - JAVA

James is a Java developer working INFR INC. He has written Java code to open a file, read it line by line and display its content in the text editor. He wants to ensure that any unhandled exception raised by the code should automatically close the opened file stream. Which of the following exception handling block sho…

Nội dung câu hỏi

James is a Java developer working INFR INC. He has written Java code to open a file, read it line by line and display its content in the text editor. He wants to ensure that any unhandled exception raised by the code should automatically close the opened file stream. Which of the following exception handling block should he use for the above purpose?

Các lựa chọn

Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.

  1. A. Try-Catch-Finally block
  2. B. Try-Catch block
  3. C. Try-With-Resources block — đáp án hiện tại
  4. D. Try-Catch-Resources block

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề