1.
What is the purpose of the `@WebServlet` annotation in a Java web application?

2.
In a Java web application, what is the role of the `ServletContext` object?

3.
What is the primary purpose of the `@PostConstruct` annotation in Java EE applications?

4.
In Java EE applications, what is the purpose of the `@Resource` annotation?

5.
What is the `web.xml` deployment descriptor used for in a Java web application?

6.
In a Java web application, what is the purpose of the `@WebListener` annotation?

7.
What is the role of the `ServletContextListener` interface in Java web applications?

9.
What is the purpose of the `@PreDestroy` annotation in Java EE applications?