What is the purpose of the `@WebServlet` annotation in a Java web application?
Select an option to see the answer and solution.
In a Java web application, what is the role of the `ServletContext` object?
Select an option to see the answer and solution.
What is the primary purpose of the `@PostConstruct` annotation in Java EE applications?
Select an option to see the answer and solution.
In Java EE applications, what is the purpose of the `@Resource` annotation?
Select an option to see the answer and solution.
What is the `web.xml` deployment descriptor used for in a Java web application?
Select an option to see the answer and solution.
In a Java web application, what is the purpose of the `@WebListener` annotation?
Select an option to see the answer and solution.
What is the role of the `ServletContextListener` interface in Java web applications?
Select an option to see the answer and solution.
Which annotation is used to specify that a method should be invoked after a session is invalidated in a Java web application?
Select an option to see the answer and solution.
What is the purpose of the `@PreDestroy` annotation in Java EE applications?
Select an option to see the answer and solution.
In a Java EE application, what is the role of the `@EJB` annotation?
Select an option to see the answer and solution.
Which annotation is used to declare a filter in a Java web application?
Select an option to see the answer and solution.
In a Java web application, what is the purpose of the `@ContextConfiguration` annotation?
Select an option to see the answer and solution.
What is the primary role of the `ServletContextEvent` class in Java web applications?
Select an option to see the answer and solution.
Which annotation is used to specify a custom error page in a Java web application?
Select an option to see the answer and solution.
In Java EE applications, what is the purpose of the `@PersistenceContext` annotation?
Select an option to see the answer and solution.
What does the `@Singleton` annotation indicate in Java EE applications?
Select an option to see the answer and solution.
In Java web applications, what is the purpose of the `@RequestScoped` annotation?
Select an option to see the answer and solution.
What is the purpose of the `@WebInitParam` annotation in a servlet declaration?
Select an option to see the answer and solution.
In Java EE applications, what is the primary role of the `@MessageDriven` annotation?
Select an option to see the answer and solution.
Which annotation is used to specify a custom error page for a specific exception type in a Java web application?
Select an option to see the answer and solution.