nerdexam
Oracle

1Z0-860 · Question #153

A developer writes client code that runs in a Java EE container and accesses an EJB 3.0 stateful session bean. Which three statements are correct? (Choose three.)

The correct answer is A. The client can obtain a reference to the bean's business interface through JNDI lookups. B. The client can obtain a reference to the bean's business interface through dependency injection. C. If the client calls a business method after the bean instance has been removed an exception will occur. See the full explanation below for the reasoning.

Question

A developer writes client code that runs in a Java EE container and accesses an EJB 3.0 stateful session bean. Which three statements are correct? (Choose three.)

Options

  • AThe client can obtain a reference to the bean's business interface through JNDI lookups.
  • BThe client can obtain a reference to the bean's business interface through dependency injection.
  • CIf the client calls a business method after the bean instance has been removed an exception will occur.
  • DAfter obtaining a reference to the bean's business interface, the client must call the create method
  • EAfter the bean instance has been passivated, the client needs to re-obtain a reference to the bean's

How the community answered

(56 responses)
  • A
    80% (45)
  • D
    5% (3)
  • E
    14% (8)

Community Discussion

No community discussion yet for this question.

Full 1Z0-860 Practice