nerdexam
Oracle

1Z0-899 · Question #182

Which method must be used to encode a URL passed as an argument to HttpServletResponse. sendRedirect when using URL rewriting for session tracking?

The correct answer is D. HttpServletResponse.encodeRedirectURL. See the full explanation below for the reasoning.

Question

Which method must be used to encode a URL passed as an argument to HttpServletResponse. sendRedirect when using URL rewriting for session tracking?

Options

  • AServletResponse.encodeURL
  • BHttpServletResponse.encodeURL
  • CServletResponse.encodeRedirectURL
  • DHttpServletResponse.encodeRedirectURL

How the community answered

(40 responses)
  • A
    3% (1)
  • B
    5% (2)
  • C
    10% (4)
  • D
    83% (33)

Community Discussion

No community discussion yet for this question.

Full 1Z0-899 Practice