Oracle
1Z0-899 · Question #4
You want to create a filter for your web application and your filter will implement .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 -. See the full explanation below for the reasoning.
Question
You want to create a filter for your web application and your filter will implement .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.sarvlat.FilterChain.
- CWhen your filter chains to the next filter, it should pass the same arguments it received in its
- DThe method that your filter invokes on the object it received that implements javax -
- EYour filter class must implement a doFilter method that takes, among other things, an
How the community answered
(40 responses)- A73% (29)
- B15% (6)
- C10% (4)
- E3% (1)
Community Discussion
No community discussion yet for this question.