Java HttpCookie getPortlist() MethodThe getPortlist() method of HttpCookie class is invoked to return the port list attribute of the cookie. SyntaxParameterN.A. ReturnThe above method is used to return a String which contains the port list. Also, the method may return null if there is no port list. Example 1Test it NowOutput: The port lists is given as: 2100, 1897 Example 2Test it NowOutput: The first port list is given as:3980 The second port list is given as:3900 Example 3Test it NowOutput: The port lists is given as: null Next TopicgetSecure() 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