What are setComment and getComment methods in Cookies?
Answer Posted / satendra
getComment() : Returns the comment describing the purpose of
this cookie, or null if no such comment has been defined.
and setComment() is used to provide description about cookie.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Can we get PrintWriter and ServletOutputStream both in a servlet?
How to create war file?
How a servlet is unloaded?
What is new in ServletRequest interface ? (Servlet 2.4)
Tell us something about servletcontext interface.
What is the difference between portlet and servlet?
How do servlets work?
What must be implemented by all servlets?
What is the difference between context parameter and context attribute?
Is servlet a controller?
What do you mean by cgi in servlet?
What is the difference between the include() and forward() methods?
What is the disadvantage of cookies?
What is the procedure of invoking different servlet in a different application?
How can we refresh automatically when new data has entered the database?