Multiple choice technology programming languages

Which of the following are true statements about what happens when a remove() method is called using the component interface of an entity bean representing a specific entity in the database?

  1. The entity bean instance is deleted.

  2. The entity in the database is deleted.

  3. Both the entity and the entity bean instance survive, but that entity bean instance does not represent that entity anymore.

  4. Nothing happens; the container simply ignores the call.

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

Calling remove() on an entity bean's component interface deletes the underlying entity from the database. The bean instance itself is not deleted - it's returned to the pool for reuse. Option C is incorrect because the entity is actually removed, not dissociated. Option D is incorrect because the remove operation is significant and not ignored.