nerdexam
Oracle

1Z0-860 · Question #81

Given the following stateless session bean implementation classes: 10. @TransactionAttributefJransactionAttributeType. MANDATORY) 11. public class MySuperj 12. public void methodAfJO 13. public void…

The correct answer is B. REQUIRED, MANDATORY, and REQUIRES_NEW. See the full explanation below for the reasoning.

Question

Given the following stateless session bean implementation classes: 10. @TransactionAttributefJransactionAttributeType. MANDATORY) 11. public class MySuperj 12. public void methodAfJO 13. public void methodBOJ} 14.} 10. ©Stateless 11. public class MyBean extends MySuper implements Mylntj 12. public void methodAOJ} 13. 14. @TransactionAttributeO"ransactionAttributeType.REQUIRES_NEW) 15. public void methodC0 {} 16.} 10. @RemoteO 11. public interface Mylntj 12. public void methodAO; 13. public void methodB0; 14. public void methodC0; 15.} Assuming no other transaction-related metadata, what are the transaction attributes of methodA, methods, and methodC respectively?

Options

  • AMANDATORY, MANDATORY, and MANDATORY
  • BREQUIRED, MANDATORY, and REQUIRES_NEW
  • CMANDATORY, MANDATORY, and REQUIRES_NEW
  • DREQUIRED, REQUIRES NEW, and REQUIRES NEW

How the community answered

(38 responses)
  • A
    11% (4)
  • B
    82% (31)
  • C
    3% (1)
  • D
    5% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-860 Practice