Kizspy | Question: 34
(Choose 1 answer)
public class MyAppContextListener implements ServletContextListener {
}
public void contextInitialized(ServletContextEvent event) {
// TODO: Your code here
public void contextDestroyed (ServletContextEvent event) {
// TODO: Your code here
In the contextInitialized method, what kind of tasks would you typically perform during the initialization of the
servlet context?
A. Handling user requests
B. Initializing objects for database connections
C. Creating session objects
D. Configuring global application settings