READ Free Dumps For Oracle- 1z0-899
Question ID 4625 | Given an HttpServletRequestrequest and HttpResponseresponse, which sets a cookie “username” with the value “joe” in a servlet? |
Option A | A. request.addCookie("username", "joe") |
Option B | B. request.setCookie("username", "joe") |
Option C | C. response.addCookie("username", "joe") |
Option D | D. request.addHeader(new Cookie("username", "joe")) |
Option E | E. request.addCookie(new Cookie("username", "joe")) |
Option F | F. response.addCookie(new Cookie("username", "joe")) |
Correct Answer | F |
Question ID 4626 | Which annotation enables a servlet to efficiently process requests of typo multipart/form-data that involve large files being uploaded by the client? |
Option A | A. @AcceptMultipart |
Option B | B. @MultiPartConfig |
Option C | C. @MultiPartFormData |
Option D | D. @WebServlet (multipart = true) |
Correct Answer | B |