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

Câu 70: GSSP-Java: GIAC Secure Software Programmer-Java

Which of the following syntaxes can be used to retrieve a URL to a resource specified as WEBINF/example/sessionObject.txt?Note. Assume that session is an instance of the HttpSession interface, request is an instance of the HttpServletRequest interface, and context is an instance of the ServletContext interface.

Nội dung câu hỏi

Which of the following syntaxes can be used to retrieve a URL to a resource specified as WEBINF/example/sessionObject.txt?Note. Assume that session is an instance of the HttpSession interface, request is an instance of the HttpServletRequest interface, and context is an instance of the ServletContext interface.

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. context.getResource ("/example/sessionObject.txt")
  2. B. session.getResource ("/WEB-INF/example/sessionObject.txt")
  3. C. request.getResource ("/WEB-INF/example/sessionObject.txt")
  4. D. context.getResource ("WEB-INF/example/sessionObject.txt")
  5. E. context.getResource ("/WEB-INF/example/sessionObject.txt") — đáp án hiện tại
  6. F. request.getResource ("WEB-INF/example/sessionObject.txt")

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ề