nerdexam
Oracle

1Z0-895 · Question #53

1Z0-895 Question #53: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-895 to reveal the answer and full explanation for question #53. The question stem and answer options stay visible for context.

Question

Given the following stateful bean: 10. @Stateful 11. @TransactionAttribute(TransactionAttributeType.SUPPORTS) 12. public class VideoBean implements video { 13. / / insert code here 14. public void method () {} 15. } Assuming no other transaction-related metadata, which code can be added at line 13 to guarantee that business method methodA will execute only if invoked with an active transaction?

Options

  • A@TransactionAttribute ()
  • B@transactionmanagement(TransactionAttributeType.CONTAINER)
  • C@TransactionAttribute(transactionAttributeType.MANDATORY)
  • D@transactionAttribute(TransactionattributeType.RECQUIRES_NEW)

Unlock 1Z0-895 to see the answer

You've previewed enough free 1Z0-895 questions. Unlock 1Z0-895 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 1Z0-895 Practice