_________ is used to monitor lifecycle events of a session.
- EventListener
- HttpSessionListener
- ServletContextListener
- ServletRequestListener
The correct answer is HttpSessionListener. This interface is used to monitor lifecycle events of a session, such as when a session is created, destroyed, or its attributes are modified.
Loading...
Related Quiz
- _________ tracking involves appending session ID information to every URL.
- How does implementing gzip compression for responses optimize servlet performance?
- The servlet forwards the processed data to the view using the __________ mechanism.
- Which method is used to initialize a filter in the filter chain?
- Which interface must be implemented by a servlet for asynchronous processing?