nerdexam
Oracle

1Z0-899 · Question #59

Which three are true about the HttpServletRequestWrapper class? (Choose three.)

The correct answer is A. The HttpServletRequestWrapper is an example of the Decorator pattern. B. The HttpServletRequestWrapper can be used to extend the functionality of a servlet request. F. An HttpServletRequestWrapper may modify the header of a request within an object implementing the. See the full explanation below for the reasoning.

Question

Which three are true about the HttpServletRequestWrapper class? (Choose three.)

Options

  • AThe HttpServletRequestWrapper is an example of the Decorator pattern.
  • BThe HttpServletRequestWrapper can be used to extend the functionality of a servlet request.
  • CA subclass of HttpServletRequestWrapper CANNOT modify the behavior of the getReader method.
  • DAn HttpServletRequestWrapper may be used only by a class implementing the javax.servlet.Filter
  • EAn HttpServletRequestWrapper CANNOT be used on the request passed to the
  • FAn HttpServletRequestWrapper may modify the header of a request within an object implementing the

How the community answered

(35 responses)
  • A
    80% (28)
  • C
    6% (2)
  • D
    3% (1)
  • E
    11% (4)

Community Discussion

No community discussion yet for this question.

Full 1Z0-899 Practice