Which interface must a class implement so that instances of the class are notified after any object
added to a session?
A.
javax.servlet.http.HttpSessionListener
B.
javax.servlet.http.HttpSessionValueListener
C.
javax.servlet.http.HttpSessionBindingListener
D.
javax.servlet.http.HttpSessionAttributeListener
D
D.
HttpSessionAttributeListener has the methods:
attributeAdded, attributeReplaced, attributeRemoved
then will be call every time that an attribute is treated on the session.