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 meant by Transaction Isolation Levels?

2 Answers   IBM,


What is servlet context ?

4 Answers  


Name the webserver that is used to run Servlets?

5 Answers  


What is session?

1 Answers  


What are important features of Servlet 3?

1 Answers  


What are the mechanisms used by a servlet container for maintaining session information?

1 Answers  


When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?

1 Answers  


What is the life-cycle of servlets?

1 Answers  


why business logic written using servlets not in jsp. Jsp used for presentation purpose. serlvet used for coding business logic and controller logic. Reason for using servlets in business logic.

5 Answers  


How can we perform any action at the time of deploying the project?

1 Answers  


What is servlet configuration?

1 Answers  


How can the referrer and the target urls be used in servlet?

1 Answers  


Categories