Multiple choice

Which of the following does the ServletContextListener class provide in the servlet application?

  1. This class provides notifications in the ServletContext object.

  2. The contextDestroyed() method determines whether the servlet container is shut down.

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

  4. All of the above

  5. Only (1) and (3)

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

These are correct statements.