Which of the following listener's notification methods accepts the HttpSessionBindingEvent?
a.HttpSessionBindingListener
b HttpSessionActivationListener
c. All of the above
Choice C is correct
Both the listeners (HttpSessionBindingListener and HttpSessionActivationListener) accept the HttpSessionBindingEvent for their notification methods.
Following is the list of notification methods for the HttpSessionBindingListener listener.
HttpSessionActivationListener's sessionWillPassivate and sessionDidActivate accepts HttpSessionEvent object, not HttpSessionBindingEvent.
On the other hand, HttpSessionAttributeListener's attributeReplaced, attributeRemoved, attributeAdded accept HttpSessionBindingEvent.