nerdexam
Oracle

1Z0-860 · Question #285

A developer writes a stateful session bean called FooBean. Which code can be inserted before Line 11 of the FooBean class to define a TYPE-level environment dependency on a JMS Topic? 11. public…

The correct answer is D. @Resource(name="topicRef', type=Topic. class). See the full explanation below for the reasoning.

Question

A developer writes a stateful session bean called FooBean. Which code can be inserted before Line 11 of the FooBean class to define a TYPE-level environment dependency on a JMS Topic? 11. public class FooBean { 12. 13. public void fooQ {} 14. 15.}

Exhibit

1Z0-860 question #285 exhibit

Options

  • A@Resource(type=Topic. class)
  • B@Resource(name="topicRef) private static Topic topic;
  • C©ResourceprivateTopic topic;
  • D@Resource(name="topicRef', type=Topic. class)

How the community answered

(30 responses)
  • A
    7% (2)
  • B
    13% (4)
  • C
    3% (1)
  • D
    77% (23)

Community Discussion

No community discussion yet for this question.

Full 1Z0-860 Practice