Multiple choice

Which of the following informations does the ServletContextListener class provide in the Servlet application?

  1. This class provides notifications in the ServletContext object.

  2. The contextDestroyed() method determines that the Servlet container is shut down.

  3. The contextInitialized() method determines that the web application is ready to service the request.

  4. Option 1 and 3

  5. It is incorrect. Option 5 is correct answer.

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

All are the correct statements for the ServletContextListener class provide in the Servlet application.