nerdexam
GIAC

GSSP-JAVA · Question #127

Which of the following statements about a filter are true? Each correct answer represents a complete solution. Choose all that apply.

The correct answer is A. Like a servlet, a filter is also declared in the deployment descriptor. B. The life cycle of a filter is managed by the container. D. Every filter must implement the Filter interface. See the full explanation below for the reasoning.

Question

Which of the following statements about a filter are true? Each correct answer represents a complete solution. Choose all that apply.

Options

  • ALike a servlet, a filter is also declared in the deployment descriptor.
  • BThe life cycle of a filter is managed by the container.
  • CThe life cycle of a filter has three methods, namely init(), service(), and destroy().
  • DEvery filter must implement the Filter interface.

How the community answered

(17 responses)
  • A
    76% (13)
  • C
    24% (4)

Community Discussion

No community discussion yet for this question.

Full GSSP-JAVA Practice