Java Server And Servlet - Study Mode

[#61] In Java Servlets, what is the purpose of the `HttpServletRequest` object?
Correct Answer

(B) To encapsulate the client's request information

[#62] Which of the following is true about session management in Java Servlets?
Correct Answer

(C) Sessions can be maintained using cookies or URL rewriting

[#63] What is the role of the `HttpServletResponse` object in Java Servlets?
Correct Answer

(D) To encapsulate the response sent to the client

[#64] Which HTTP method is typically used for retrieving data from a server in Java Servlets?
Correct Answer

(A) `GET`

[#65] In Java Servlets, what is the purpose of the `ServletContext` object?
Correct Answer

(D) To provide access to application-wide resources