Examveda
Examveda

Which annotation is used to specify that a method should be invoked after a session is invalidated in a Java web application?

A. `@WebListener`

B. `@Resource`

C. `@PostConstruct`

D. `@PreDestroy`

Answer: Option D


Join The Discussion

Related Questions on Application Lifecycle and Annotation