Java HttpCookie getPortlist() MethodLast Updated : 17 Mar 2025 The 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 1Output: The port lists is given as: 2100, 1897 Example 2Output: The first port list is given as:3980 The second port list is given as:3900 Example 3Output: The port lists is given as: null Next TopicgetSecure() Method |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India