Which four are possible results?

Given this code snippet from a JMS messagE. driven bean class named MyMDB:
11. public MyMDB() { System.out.print(“a “); }
12. public void onMessage(Message m) { System.out.print(“b “); }
13. @PreDestroy
14. public void remove() { 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 MyMDB() { System.out.print(“a “); }
12. public void onMessage(Message m) { System.out.print(“b “); }
13. @PreDestroy
14. public void remove() { 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.
a b b

B.
a c b b

C.
a a c b b

D.
a a b b c

E.
a b c b c

F.
ababec



Leave a Reply 0

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