Examveda
Examveda

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

A. To define JavaBean properties

B. To execute SQL queries

C. To create JavaBeans

D. To declare a listener class for various events in the web application

Answer: Option D


Join The Discussion

Related Questions on Application Lifecycle and Annotation