欢迎来到易学考试网 易学考试官网
全部科目 > Java认证考试 > SCDCD(310-081)

单项选择题

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

点击查看答案

相关考题

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

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