Multiple choice technology programming languages

How are life cycle methods called?

  1. By thin clients.

  2. By calls to the database

  3. By the J2EE server.

  4. By the bean's container.

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

Life cycle methods (ejbCreate, ejbRemove, etc.) are called by the bean's container, not by clients, the server directly, or database calls. The container manages bean instances and invokes these methods at appropriate times during the bean's life cycle. This is fundamental to EJB architecture.