Oracle
1Z0-860 · Question #151
Given this code snippet from a JMS message-driven bean class named MyMDB: 11. public MyMDBOJ System, out. print("a "); } 12. public void onMessage(Message m) { System, out. print("b "); } 13…
The correct answer is A. abb C. aa c bb D. aab b c F. ababc c. See the full explanation below for the reasoning.
Question
Given this code snippet from a JMS message-driven bean class named MyMDB: 11. public MyMDBOJ System, out. print("a "); } 12. public void onMessage(Message m) { System, out. print("b "); } 13. @PreDestroy 14. public void removeQ { System, out. print("c "); } The container crashes and then restarts and then the bean class handles two messages. Which four are possible results? (Choose four.)
Options
- Aabb
- Bacbb
- Caa c bb
- Daab b c
- Ea bcb c
- Fababc c
How the community answered
(62 responses)- A82% (51)
- B6% (4)
- E11% (7)
Community Discussion
No community discussion yet for this question.