What are setComment and getComment methods in Cookies?

Answers were Sorted based on User's Feedback



What are setComment and getComment methods in Cookies?..

Answer / 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

What are setComment and getComment methods in Cookies?..

Answer / niranjanravi

thay are used to get and the comments in cookies.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Servlets Interview Questions

How servlets can be automatically reloaded?

3 Answers  


why are using HttpServlet in realtime projects and why are not using Genericservlet

2 Answers  


Servlet Chaining? How do you do the Filtering in Servlets?

6 Answers   HCL,


how to use servlets with j2ee ?

2 Answers   Tech Mahindra,


What is a generic servlet?

0 Answers  






How to set a cookie that is persisted only for the duration fo the clients session?

1 Answers  


What is servlet mapping?

0 Answers  


Why do we use sendredirect() method?

0 Answers  


Elucidate servlet attributes and its scope?

0 Answers  


What is the servletconfig object?

0 Answers  


What is difference between server and servlet?

0 Answers  


How do cookies work in servlets?

0 Answers  


Categories