nerdexam
Oracle

1Z0-860 · Question #124

1Z0-860 Question #124: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-860 to reveal the answer and full explanation for question #124. 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 FooBean have transaction attribute REQUIRED, and all business methods in BarBean have transaction attribute REQUIRES_NEW. 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 RuntimeException("unexpected error..."); 13.} Which is true about the result of this method 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.EJBTransactionRolledbackException.
  • DFooBean.foo method receives the original RuntimeException thrown from BarBean.bar method.

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.

Full 1Z0-860 Practice