Java HttpCookie getComment() MethodThe getComment() method of Java HttpCookie class is used to return the comment which describes the purpose of the cookie. Also, the method may return null if the cookie has no comment. SyntaxParameterN.A. ReturnThe above method is used to return a string containing the comment. Also, the method may return null if there is no comment. Example 1Test it NowOutput: Comment:Worker works in a factory on daily basis pay. Example 2Test it NowOutput: Comment:Mangaer manages all the records of the factory in a sequential order. Example 3Test it NowOutput: Comment 1:A HeadMaster is superior than a teacher. Comment 2: A teacher is always a trustworthy person. Next TopicgetCommentURL() Method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India