Which listener interface in Servlets is used for receiving notification about ServletContext lifecycle changes?
- HttpSessionListener
- ServletContextAttributeListener
- ServletContextListener
- ServletRequestListener
The ServletContextListener interface is used for receiving notifications about ServletContext lifecycle changes, such as when it is initialized or destroyed.
Loading...
Related Quiz
- Filters can modify the __________ or __________ objects before they reach a servlet.
- In a CallableStatement, the method _________ is used to execute a SQL function.
- The _________ method should be used carefully in servlets due to potential thread safety issues.
- How does redirection differ from request dispatching in servlets?
- Which listener interface is used to receive notifications about changes to the servlet request?