nerdexam
Oracle

1Z0-860 · Question #98

While executing a business method in a stateless session bean the container rolls back the method's transaction. Which three are possible causes for the container's behavior? (Choose three.)

The correct answer is A. The bean uses container-managed transactions and invokes EJBContext.setRollbackOnly. C. The business method invokes a method that throws an uncaught java.lang.NullPointerException. E. The business method throws an unchecked exception of a class type that is marked with the. See the full explanation below for the reasoning.

Question

While executing a business method in a stateless session bean the container rolls back the method's transaction. Which three are possible causes for the container's behavior? (Choose three.)

Options

  • AThe bean uses container-managed transactions and invokes EJBContext.setRollbackOnly.
  • BThe bean uses container-managed transactions and invokes EJBContext.getRollbackOnly.
  • CThe business method invokes a method that throws an uncaught java.lang.NullPointerException.
  • DThe business method throws a checked exception of a class type that is marked with the
  • EThe business method throws an unchecked exception of a class type that is marked with the
  • FThe bean uses container-managed transactions and throws a checked exception of a class type that is

How the community answered

(41 responses)
  • A
    85% (35)
  • B
    5% (2)
  • D
    2% (1)
  • F
    7% (3)

Community Discussion

No community discussion yet for this question.

Full 1Z0-860 Practice