aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Web Programming Fundamentals
  • Which of the following methods of the HttpSevletResponse ...
Multiple choice

Which of the following methods of the HttpSevletResponse interface is used to write a cookie to a users machine?

  1. containsHeader()

  2. encodeURL()

  3. addCookie()

  4. getMethod()

  5. getRemoteUser()

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This method of the HttpSevletResponse interface is used to write a cookie to a users machine.

Keep practicing — related questions

  • Which of the following is not a method of HttpServletResponse Object in JSP (Java Server Pages)?
  • Which HttpServletRequest method is most closely associated with the use of the element
  • Which of the following classes in Servlets provides methods to handle HTTP requests and responses?
  • Which of the following is/are the correct statements about the setHeader method of the HttpServletResponse ...
  • Which of the following methods is not present in the HttpCookie class in java?
  • Which of the following is/are not method(s) of HttpServletRequest interface in java servlet?
  • What is the method name of the Java Class "Cookie" to be used to indicate to the browser whether the cookie...
  • Which method of HttpServletResponse is used to redirect an Http request to another URL?
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Java Enterprise and Web Technologies (2183 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy