Câu 25: 70-483: MCSD Programming in C
You are developing an application. The application contains the following code: When you compile the code, you receive the following syntax error message: "A previous catch clause already catches all exceptions of this or a super type('System.Exception')."You need to ensure that the code can be compiled. What should y…
Nội dung câu hỏi
You are developing an application. The application contains the following code: When you compile the code, you receive the following syntax error message: "A previous catch clause already catches all exceptions of this or a super type('System.Exception')."You need to ensure that the code can be compiled. What should you do?
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.
- A. Catch the ArgumentException exception instead of the ArgumentNullException exception. — đáp án hiện tại
- B. Throw a new exception in the second catch block.
- C. Catch the ArgumentNullException exception first.
- D. Re-throw the exception caught by the second catch block.
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.