Oracle
1Z0-898 · Question #8
1Z0-898 Question #8: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-898 to reveal the answer and full explanation for question #8. The question stem and answer options stay visible for context.
Question
FooBean and BarBean are both EJB 3.0 stateless beans with container-managed transaction demarcation. All business methods in FooBean have transaction attribute REQUIRED, and all business methods in BarBean have transaction attribute REQUIRED_NEW. The business method foo in FooBean invokes the Business method bar in BarBean. Given: 10. Public class BarBean { 11. public void bar () { 12. throw new RuntimeException ("unexpected error . . . "); 13. }} Which is true about the method of invocation assuming execution reaches line 12?
Options
- AFooBean.foo method receives javax.ejb.EJBException.
- BThe BarBean bean instance is in ready state for the next invocation.
- CFooBean.foo method receives javax -ejb. EJBTtansactionRolledbackException.
- DFooBean.foo method receives the original RuntimeException thrown from BarBean.bar method.
Unlock 1Z0-898 to see the answer
You've previewed enough free 1Z0-898 questions. Unlock 1Z0-898 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.