Home » JAVA Programming » Java Basic » Question
  1. When destroy() method of a filter is called?
    1. The destroy() method is called after the filter has executed doFilter method
    2. The destroy() method is called only once at the end of the life cycle of a filter
    3. The destroyer() method is called after the filter has executed
    4. The destroy() method is called only once at the begining of the life cycle of a filter
    5. None of these
Correct Option: B

destroy() is an end of life cycle method so it is called at the end of life cycle.



Your comments will be displayed only after manual approval.