nerdexam
Oracle

1Z0-860 · Question #119

A developer wants to write a stateful session bean using the following interface as local business interface: 1. package acme; 2. public interface Bar{ 3. public void barQ;4-i Assuming there is NOT…

The correct answer is C. ©Stateful. See the full explanation below for the reasoning.

Question

A developer wants to write a stateful session bean using the following interface as local business interface: 1. package acme; 2. public interface Bar{ 3. public void barQ;4-i Assuming there is NOT an ejb-jar.xml file, which code can be inserted into Lines 4-6 below to define the bean with the ejb name of BarBean? 1. package acme; 2. import javax. ejb.; 3. import Java, io.; 4. 5. 6. 7.}

Options

  • A©Stateful
  • B@Stateful(name="Bar")
  • C©Stateful
  • D@Stateful(name="Bar")

How the community answered

(29 responses)
  • A
    10% (3)
  • B
    3% (1)
  • C
    83% (24)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-860 Practice