nerdexam
Oracle

1Z0-860 · Question #16

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

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

Question

A developer writes a stateful session bean FooBarBean with two local business interfaces Foo and Bar. The developer wants to write a business method called getBarfor interface Foo that returns a Bar reference to the same session bean identity on which the client invokes getBar. Which code, when inserted on Line 12 below, implements the getBar method with the wanted behavior? 10. ©Resource SessionContext sessionCtx; 11. public BargetBarOJ 12. 13.}

Options

  • Areturn (Bar)t his;
  • Breturn (Bar) new FooBarBeanQ;
  • Creturn (Bar) sessionCtx.lookup("FooBarBean")
  • Dreturn (Bar) sessionCtx.getBusinessObject(Bar.class);
  • EInitialContextic= new InitialContextQ;

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