aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java and JSP Programming Fundamentals
  • Which of the following methods are defined in Cookie class?
Multiple choice

Which of the following methods are defined in Cookie class?

  1. getDomain()

  2. getMaxAge()

  3. getName()

  4. getComment()

  5. none of the above

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

Yes, all the above are the methods of Cookie class.

Keep practicing — related questions

  • Which of the following is not a method of Cookies class in java servlet?
  • Which of the following methods in HttpCookie class returns the maximum age of the cookie in seconds?
  • Which of the following methods is not present in the HttpCookie class in java?
  • If you want to find out whether a cookie has been already set which of the following is used
  • What is the method name of the Java Class "Cookie" to be used to indicate to the browser whether the cookie...
  • Which of the following methods are declared in ServletRequest?
  • Which retrieves all cookies sent in a given HttpServletRequest request?
  • Which of the following is/are not method(s) of HttpServletRequest interface in java servlet?
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Java Core Classes and Threads (1473 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy