-
When destroy() method of a filter is called?
-
- The destroy() method is called after the filter has executed doFilter method
- The destroy() method is called only once at the end of the life cycle of a filter
- The destroyer() method is called after the filter has executed
- The destroy() method is called only once at the begining of the life cycle of a filter
- None of these
Correct Option: B
destroy() is an end of life cycle method so it is called at the end of life cycle.