试题详情
- 单项选择题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”))
- F
关注下方微信公众号,在线模考后查看
热门试题