Multiple choice technology programming languages

When do you use a session bean?

  1. When you want to be certain your application data persists between program invocations , even in the event of a crash

  2. If you need to initiate a database transaction

  3. To process transient data that can be re-created in the event of a crash.

  4. to keep people who do not know how to program , from accidentally changing important logic code.

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

Session beans are designed for transient, short-lived operations that don't need to survive crashes. They process business logic that can be restarted if lost. Persistence between program invocations requires entity beans or database storage. Database transactions can be initiated from various components, not just session beans.