Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Javaranch mock?Question Bank ID : 23  RSS feed

 
R K Singh
Ranch Hand
Posts: 5390
1
Java Spring
  • 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: 8933
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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!