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


Please Help Members By Posting Answers For Below Questions

What is war file?

775


How can the session in servlet can be destroyed?

894


Explain servlet events?

744


What is the need of session tracking in web application?

775


What’s the difference between forward() and sendredirect() methods?

778


Differentiate between the get and post method

790


What do you mean by filter in servlet?

735


What if we pass negative value in load-on-startup?

1031


What is context in servlet?

756


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

873


What is the purpose of requestdispatcher interface?

817


What is MIME Type?

868


What is the difference between Servlets and Applets?

753


How native code can be used in a servlet?

3734


What is the use of send redirect () method?

792