Q. Which statement about life-cycle callback methods is correct? (Solved)

1. Life-cycle callback methods must be implemented in the bean class.

2. Life-cycle callback methods can have public, private, protected, or packagelevel access. (*)

3. A life-cycle callback method can only have a single callback annotation. In other words, you cannot define a single method and give it two different callback annotations.

4. Life-cycle callback methods can be declared as static.

  • b. Life-cycle callback methods can have public, private, protected, or packagelevel access. (*)
Subscribe Now

Get All Updates & News