Multiple choice technology databases

The annotation @PrePassivate be used for more than one method in a bean

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

@PrePassivate is an EJB lifecycle callback annotation that can only be applied to ONE method per bean class. Using it on multiple methods would cause a deployment error because the container needs exactly one pre-passivation callback method.