Oracle
1Z0-895 · Question #9
1Z0-895 Question #9: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-895 to reveal the answer and full explanation for question #9. The question stem and answer options stay visible for context.
Question
A developer writes a stateless session bean HelloBean that exposes a local business interface Hello: The developer wants to test HelloBean using the EJB 3.1 Embeddable API. Given a main method with the following code: 100. EJBContainer container = EJBContainer.createEJBContainer(); Assuming HelloBean is packaged in hello.jar and included in the classpath, which code correctly acquires a reference to HelloBean?
Exhibit
Options
- AInitialContext ic = new InitialContext();
- BInitialContext ic = new InitialContext();
- CContext c = container.getContext();
- DContext c = container.getContext();
Unlock 1Z0-895 to see the answer
You've previewed enough free 1Z0-895 questions. Unlock 1Z0-895 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.
