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

What is the servletconfig object?

0 Answers  


What is servlet mapping?

0 Answers  


My Question is that i am using <image> tag in my servlet and after compilation after that calling by url in my browser then images are not showing. Sometime images are showing and sometime is not showing. I am using Tomcat to run my servlets. Tell me if there any specification for image in servlets or what is solution for this ??

2 Answers  


Can we override the ActionServlet?

3 Answers   ArisGlobal, HCL, PPF,


What is the difference between the servlets and cgi programs?

0 Answers  






What is servlet? Explain

0 Answers  


How is the get () method different from the post() method?

0 Answers  


Is it possible to have a constructor inside the servlet?

0 Answers  


Does servlet have main method?

0 Answers  


What is meant by servlet? What are the parameters of the service method?

0 Answers  


What are the ways to handle multi-threading in servlets?

0 Answers  


Why do we have servlet listeners?

0 Answers  


Categories