• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Javaranch mock?Question Bank ID : 23

 
Ranch Hand
Posts: 5399
1
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Que: A class that will recieve notification if an Attribute is added to or removed
from a session will implement which interface?

Given correct answer is HttpSessionAttributeListener
but I think(and I think I am right) ans is HttpSessionBindingListener
coz I could not find anything like HttpSessionAttributeListener in j2ee1.2.1 Doc in javax.servlet.http package.
Please correct me if I am wrong.
TIA
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
see v2.3 of servlet spec

Originally posted by Ravish Kumar:
Que: A class that will recieve notification if an Attribute is added to or removed
from a session will implement which interface?

Given correct answer is HttpSessionAttributeListener
but I think(and I think I am right) ans is HttpSessionBindingListener
coz I could not find anything like HttpSessionAttributeListener in j2ee1.2.1 Doc in javax.servlet.http package.
Please correct me if I am wrong.
TIA

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
giving a ref is helpful but giving reasons is more imp...
Do u even know why is it deprecated in 2.3 spec...
i guess instead of giving answers as refernces better not give them
 
Everybody! Do the Funky Monkey! Like this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic