When a servlet context is initialized or destroyed, the ___________ interface is used.
- ServletContextAttributeEvent
- ServletContextAttributeListener
- ServletContextEvent
- ServletContextListener
The ServletContextListener interface is used when a servlet context is initialized or destroyed, providing methods for handling these lifecycle events.
Loading...
Related Quiz
- In a complex web application using MVC and servlets, a new feature requires integration of a third-party service. Where should this integration primarily take place?
- _________ is a technique in Java to optimize memory usage by reusing objects.
- The process of replacing older cache entries with new ones is known as __________.
- How does the use of 'lazy loading' in an ORM framework like Hibernate affect database performance?
- How can a servlet efficiently handle large file uploads without running out of memory?