Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

EPratice Lab quiz 2 about event object that HttpSessionActivationListener implements

Ranch Foreman
Posts: 1898
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Which of the following listener's notification methods accepts the HttpSessionBindingEvent?

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.
Creator of Enthuware JWS+ V6
Posts: 3343
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you are right.

In this question the HttpSessionBindingListener accepts the HttpSessionBindingEvent. Option A is correct, not option C.
It is an experimental device that will make my mind that most powerful force on earth! More powerful than this tiny ad!
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic