Oracle
1Z0-860 · Question #19
1Z0-860 Question #19: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-860 to reveal the answer and full explanation for question #19. The question stem and answer options stay visible for context.
Question
Given code snippets from two files: 7. public class Dog { 8. public void onMessage(Message m) { System, out. print("1 "); 9. 1 And 10. @MessageDriven 11. class MessageDog extends Dog implements MessageDrivenBean 12. MessageDog(Message m){ System, out. print("2 "); } 13.} Which four code changes, when used together, create a valid JMS message-driven bean? (Choose four.
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 MessageListener instead of MessageDrivenBean.
Unlock 1Z0-860 to see the answer
You've previewed enough free 1Z0-860 questions. Unlock 1Z0-860 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.