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().
Loading...
Related Quiz
- How does asynchronous processing affect the servlet's lifecycle?
- What is the impact of setting a large size for the Java heap space?
- To prevent XSS attacks, it is essential to _________ user input and _________ user output.
- When is it necessary to consider thread safety in the development of a servlet?
- The __________ element in web.xml is used to define a logical name for a servlet.