欢迎来到PP题库网 PP题库官网
logo
全部科目 > Java认证考试 > SCWCD(310-083)

单项选择题

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"))

点击查看答案

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题