Given an HttpServletRequest request and HttpServletResponse response, which sets a cookie "username" with the value "joe" in a servlet?
A.
request.addCookie(new Cookie("username", "joe"));
B.
response.addCookie(new Cookie("username", "joe"));
C.
response.addCookie("username", "joe");
D.
request.addCookie("username", "joe");