nerdexam
Oracle

1Z0-860 · Question #116

Given : public class MyException extends Exception {} The business interface Foo declares a method work0:

The correct answer is A. The container does notroll back the transaction. See the full explanation below for the reasoning.

Question

Given : public class MyException extends Exception {} The business interface Foo declares a method work0:

Options

  • AThe container does notroll back the transaction.
  • BThe client receives javax.ejb.EJBTransactionRequiredException.
  • CThe client receives javax.ejb.EJBTransactionRolledbackException.
  • DThe container marks the transaction for rollback by calling the EJBContext.setRollbackOnly method.
  • Ipublic void work0 throws MyException;

How the community answered

(54 responses)
  • A
    80% (43)
  • B
    2% (1)
  • C
    6% (3)
  • D
    11% (6)
  • I
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-860 Practice