Multiple choice technology programming languages

What is bean-managed persistence?

  1. When you implement entity or session bean methods to use SQL commands you provide

  2. When the bean's container handles data storage and retrieval.

  3. When the J2EE server is never shut down.

  4. When changes to database data are lost during a crash

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

Bean-managed persistence means the bean developer writes explicit SQL/JDBC code in the bean's methods to handle database operations. Container-managed persistence (the alternative) lets the container handle storage automatically. The J2EE server shutdown and crash scenarios are unrelated to the persistence mechanism type.