Which method in a filter is responsible for cleaning up resources when the filter is taken out of service?
- destroy()
- doFilter()
- filterInit()
- init()
The destroy() method is responsible for cleaning up resources when the filter is taken out of service.
Loading...
Related Quiz
- How does the sendRedirect() method communicate the new URL to the client's browser?
- What is the role of @ServerEndpoint annotation in Java WebSocket API?
- What is the primary purpose of a filter chain in a servlet environment?
- How does a database ensure data integrity during concurrent transactions?
- What is the use of HttpSessionBindingListener in the context of servlets?