Online Java Compiler By
JavaTpoint.com
import java.net.HttpCookie; public class JavaHttpCookieGetCommentURLExample3 { public static void main(String[] args) { HttpCookie cookie = new HttpCookie("Employee", "4"); // Returns null if there is no comment URL. System.out.println("The comment URL is given as: "+cookie.getComment()); } }
Output