What is the correct order of method invocation in a filter's lifecycle?

  • destroy(), init(), doFilter()
  • doFilter(), init(), destroy()
  • init(), destroy(), doFilter()
  • init(), doFilter(), destroy()
The correct order of method invocation in a filter's lifecycle is init(), doFilter(), and destroy().
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *