Java HttpCookie getCommentURL() MethodThe getCommentURL() method of Java HttpCookie class is used to return the comment URL which describes the purpose of the cookie. Also, the method may return null if the cookie has no comment URL. SyntaxParameterN.A. ReturnThe above method is used to return a string containing the comment URL. Also, the method may return null if there is no comment URL. Example 1Test it NowOutput: The comment URL is given as: 193.18.4.1 Example 2Test it NowOutput: The first comment URL is given as: 193.18.4.1 The second comment URL is given as: 155.43.21.5 Example 3Test it NowOutput: The comment URL is given as: null Next TopicgetDiscard() 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