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.
Add your answer
Loading...

Leave a comment

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