This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javaranch mock?Question Bank ID : 23

 
R K Singh
Ranch Hand
Posts: 5384
  • Mark post as helpful
  • send pies
  • 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
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • 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
 
deneb shah
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic