多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

Given an HttpServletRequest request and HttpServletResponse response,which sets a cookie "username"with the value "joe" in a servlet?()

  • A、request.addCookie("username", "joe")
  • B、request.setCookie("username", "joe")
  • C、response.addCookie("username", "joe")
  • D、request.addHeader(new Cookie("username", "joe"))
  • E、request.addCookie(new Cookie("username", "joe"))
  • F、response.addCookie(new Cookie("username", "joe"))
正确答案:F
答案解析:
进入题库查看解析

微信扫一扫手机做题