Oracle
1Z0-860 · Question #152
1Z0-860 Question #152: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-860 to reveal the answer and full explanation for question #152. The question stem and answer options stay visible for context.
Question
Given : public class MyException extends Exception {} The business interface Foo declares a method work0: I.public void work0 throws MyException; The bean class FooBean contains the following: 10.©Stateless II. @Remote(Foo.class) 12. public class FooBean { 13. public void workQ throws MyException { 14. //do some work not shown here 15. throw new MyException0; 16.} Assuming there is no deployment descriptor, which statement is true when the workQ method is invoked by a client with an existing transaction context and execution reaches Line 15?
Options
- AThe container does notroll back the transaction.
- BThe client receives javax.ejb.EJBTransactionRequiredException.
- CThe client receives javax.ejb.EJBTransactionRolledbackException.
- DThe container marks the transaction for rollback by calling the EJBContext.set RollbackOnly 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.