Which four are possible results?

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.)

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.)

A.
abb

B.
acbb

C.
aa c bb

D.
aab b c

E.
a bcb c

F.
ababc c



Leave a Reply 0

Your email address will not be published. Required fields are marked *