Vidyalelo
Java Programming · Q9

Java Application Lifecycle and Annotations

Programming · Java Programming · question 9

Q9

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

A.
To define JavaBean properties
B.
To execute SQL queries
C.
To specify a method to be executed before an instance is removed by the container
Answer
D.
To create JavaBeans

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board