Given an HttpServlet Request request and Http Servlet Response response, which sets a cookie “username” with the value “joe” in a servlet.?()
A、 request.add Cookie (“username”. “joe”)
B、 request.set Cookie (“username, “joe”)
C、 response.add Cookie (username”, “joe”))
D、 request.add Header (new Cookie (“username”, “joe”))
E、 request.add Cookie (new Cookie (“username”, “joe”))
F、 response.add Cookie (new Cookie (“username”, “joe”))
G、 response.add Header (new Cookie (“username”, “joe”))
查看答案