nerdexam
Oracle

1Z0-899 · Question #102

You want to create a filter for your web application and your filter will implement javax.servlet.Filter. Which two statements are true? (Choose two.)

The correct answer is A. Your filter class must implement an init method and a destroy method. D. The method that your filter invokes on the object it received that implements javax.servlet. See the full explanation below for the reasoning.

Question

You want to create a filter for your web application and your filter will implement javax.servlet.Filter. Which two statements are true? (Choose two.)

Options

  • AYour filter class must implement an init method and a destroy method.
  • BYour filter class must also implement javax.servlet.FilterChain.
  • CWhen your filter chains to the next filter, it should pass the same arguments it received in its doFilter
  • DThe method that your filter invokes on the object it received that implements javax.servlet.
  • EYour filter class must implement a doFilter method that takes, among other things, an

How the community answered

(49 responses)
  • A
    80% (39)
  • B
    12% (6)
  • C
    2% (1)
  • E
    6% (3)

Community Discussion

No community discussion yet for this question.

Full 1Z0-899 Practice