Java HttpCookie clone() MethodThe clone() method of Java HttpCookie class is invoked to create and return a copy of the object. SyntaxParameterN.A. ReturnThe above method is used to return a clone of the given HTTP cookie. Example 1Test it NowOutput: The clone of the given HttpCookie is given as: Employee="1" Example 2Test it NowOutput: The first clone of the given HttpCookie is given as: Employee1="1" The second clone of the given HttpCookie is given as: Employee2="2" The third clone of the given HttpCookie is given as: Employee3="3"
Next TopicdomainMatches() Method
|