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

Explain the architechure of a servlet?

0 Answers  


Write all the phases defined in servlet life cycle?

0 Answers  


what is the difference between ServletContext and ServletConfig

7 Answers  


Explain is servlet mapping?

0 Answers  


How do you invoke a servelt?

0 Answers  






What is lazy loading and what is Generic Servlet Class?

0 Answers  


explain filters in java?

2 Answers   TCS,


Which event is fired at the time of project deployment and undeployment?

0 Answers  


Which http method is said to be non-idempotent and idempotent?

0 Answers  


What is the difference between servlet config and servlet context.

19 Answers   TCS, Tech Mahindra, Vertex,


When to use doget() and when dopost()?

0 Answers  


How can we implement a jsp page?

0 Answers  


Categories