Oracle
1Z0-895 · Question #47
Given code snippets from two files: Which four code changes, when used together, create a valid JMS message-driven bean? (Choose four)
The correct answer is A. Make class MessageDog public B. Make the MessageDog constructor no-arg C. Make the MessageDog constructor public F. Make class MessageDog implement MessageListner instead of MessageDrivenBean. See the full explanation below for the reasoning.
Question
Given code snippets from two files: Which four code changes, when used together, create a valid JMS message-driven bean? (Choose four)
Exhibit
Options
- AMake class MessageDog public
- BMake the MessageDog constructor no-arg
- CMake the MessageDog constructor public
- DMove the onMessage method to class MessageDog.
- EChange MessageDog so that it is NOT a subclass of Dog.
- FMake class MessageDog implement MessageListner instead of MessageDrivenBean.
How the community answered
(29 responses)- A83% (24)
- D10% (3)
- E7% (2)
Community Discussion
No community discussion yet for this question.
