Oracle
1Z0-860 · Question #73
1Z0-860 Question #73: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-860 to reveal the answer and full explanation for question #73. The question stem and answer options stay visible for context.
Question
FooBean and BarBean are both EJB 3.0 stateless session beans with container-managed transaction demarcation. All business methods in the two beans have transaction attribute REQUIRED. The business method foo in FooBean invokes the business method bar in BarBean. Given : 10. public class BarBean { 11. public void bar0{ 12. throw new EJBException("unexpected error..."); 13.} Which statement is true about the result of this method invocation assuming execution reaches Line 12?
Options
- AThe container might roll back the transaction.
- BThe BarBean bean instance is in the ready state for the next invocation.
- CFooBean.foo method receives javax.ejb.EJBTransactionRolledbackException.
- DFooBean.foo method receives javax.transaction.InvalidTransactionException.
Unlock 1Z0-860 to see the answer
You've previewed enough free 1Z0-860 questions. Unlock 1Z0-860 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.