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
Describe some assignments that are executed by servlet container?
What is servlet and its life cycle?
What is cookies in servlet with example?
How does tomcat servlet container work?
Can we refresh servlet in client and server side automatically?
Explain how does JSP handle run-time exceptions?
What is httpservlet and how it is different from genericservlet?
What are the life-cycle methods for a servlet?
Explain the custom jsp tags and the beans.
What are the types of servlet?
What’s the difference between sendredirect and forward methods
What are some advantages of storing session state in cookies?
What is preinitialization of a servlet?
Difference between get and post in java servlets?
How to upload a file to the server using servlet?