Multiple choice technology web technology

Which of the following listener(s) will be called when a Servlet Container initializes a Web Application?

  1. ServletContextListener

  2. ApplicationListener

  3. ApplicationContextListener

  4. None of the above.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

ServletContextListener is specifically designed to receive notifications when the web application is initialized (contextInitialized method) and destroyed. The other options (ApplicationListener, ApplicationContextListener) are not standard Servlet API listeners.