📚 Practice Mode

Java Servlets and JSP

Learn at your own pace with hints and detailed explanations

1 / 16
Multiple Choice

Which of the following is/are the correct statements about the setHeader method of the HttpServletResponse interface?

  1. This method allows us to add a name/value field to the response header.
  2. By using this method, the web server sends a special method to the browser to request another page.
  3. This method allows us to get the parameter names and values.
  4. This method can be used in HttpServletRequest interface.
  5. Both (1) and (2)