what order would they be notified if the application were shut down?

If four classes were instantiated in the following order, implementing the associated event listener,
in what order would they be notified if the application were shut down?
CustomConnectionManager implements HttpSessionListener
CustomerManager implements ServletContextListener
OrderManager implements HttpSessionListener
ShoppingCartManager implements HttpSessionListener

If four classes were instantiated in the following order, implementing the associated event listener,
in what order would they be notified if the application were shut down?
CustomConnectionManager implements HttpSessionListener
CustomerManager implements ServletContextListener
OrderManager implements HttpSessionListener
ShoppingCartManager implements HttpSessionListener

A.
CustomerManager, CustomConnectionManager, OrderManager, ShoppingCartManager

B.
CustomerManager, ShoppingCartManager, OrderManager, CustomConnectionManager

C.
ShoppingCartManager, CustomerManager, OrderManager, CustomConnectionManager

D.
ShoppingCartManager, OrderManager, CustomerConnectionManager, CustomerManager



Leave a Reply 0

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