Multiple choice technology architecture

What is the difference between stateful session beans and entity beans?

  1. Stateful session beans can survive a server crash but entity beans can't.

  2. Entity beans can survive a server crash but stateful session beans can't.

  3. Session beans are typically used to make calls on entity beans.

  4. Entity beans are typically used to make calls on session beans.

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

Entity beans represent persistent data stored in a database and can survive server crashes because their state persists in storage. Stateful session beans maintain conversational state with a specific client only in memory and lose that state if the server crashes. Session beans typically handle business logic and make calls on entity beans for data operations, not the reverse.