Multiple choice technology programming languages

Which of the following methods belong to the SessionContext interface, directly or by inheritance?

  1. ejbCreate()

  2. ejbActivate()

  3. create()

  4. setSessionContext()

  5. getRollbackOnly()

  6. getEJBHome()

Reveal answer Fill a bubble to check yourself
E,F Correct answer
Explanation

The SessionContext interface defines methods for transaction control and EJB home access, including getRollbackOnly() and getEJBHome(). Lifecycle methods such as ejbCreate, ejbActivate, and setSessionContext belong to SessionBean or its ancestors, not SessionContext, so they are incorrect.