Oracle
1Z0-899 · Question #65
1Z0-899 Question #65: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-899 to reveal the answer and full explanation for question #65. The question stem and answer options stay visible for context.
Question
Given an HttpServletRequest request and HttpServletResponse response, which sets a cookie "username" with the value "joe" in a servlet?
Options
- Arequest.addCookie("username", "joe")
- Brequest.setCookie("username", "joe")
- Cresponse.addCookie("username", "joe")
- Drequest.addHeader(new Cookie("username", "joe"))
- Erequest.addCookie(new Cookie("username", "joe"))
- Fresponse.addCookie(new Cookie("username", "joe"))
- Gresponse.addHeader(new Cookie("username", "joe"))
Unlock 1Z0-899 to see the answer
You've previewed enough free 1Z0-899 questions. Unlock 1Z0-899 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.