This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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