Vidyalelo
Java Programming · Q3

Java Application Lifecycle and Annotations

Programming · Java Programming · question 3

Q3

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

A.
To define JavaBean properties
B.
To execute SQL queries
C.
To specify a method to be executed after an instance is created and its dependencies are injected
Answer
D.
To create JavaBeans

Answer: Option C

Solution

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