Java HttpCookie getValue() MethodThe getValue()method of Java HttpCookie class is used to return the current value of the cookie. SyntaxParameterN.A. ReturnThe above method is used to return a String which contains the present value of the cookie. Example 1Test it NowOutput: The present value of the cookie is given as: 56 Example 2Test it NowOutput: The present value of the first cookie is given as: 56 The present value of the second cookie is given as: 78 Example 3Test it NowOutput: The present value of the cookie is given as: 21 Next TopicJava HttpCookie |
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