Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Another qn from ICE 287 Sample test

 
Vipin Mohan
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends
Is A the correct answer for this one ? I think so because this listener object is notified when it is bound to or unbound from a session. So it won't be having information about the whole session or about other objects stored in the session. Am I right ?
A class is created which implements the HttpSessionBindingListener interface and an instance is created in a web application. Which of the following would be the MOST common use of the features of such an object?
A. The relationship between the object's internal state and the persistent representation can be synchronized when the object is stored in or removed from the HttpSession.
B. The object can be used to monitor the usage of the HttpSession to provide information to detect performance problems caused by HttpSession usage.
C. When the HttpSession is invalidated the object can manually ensure all objects stored in the HttpSession are correctly removed to prevent memory leakage.
D. Multiple HttpSession objects relating to the same client can be combined to avoid application data loss in situations where a client is required to reauthenticate.
Select the best answer.
Thanks
Vipin
 
Howard Kushner
author
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Vipin,
I must compliment you on your understanding of that interface.
I think you've got it!
 
Vipin Mohan
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Howard ! I hope my question was not too simple ?
Vipin
[ December 02, 2003: Message edited by: Vipin Mohan ]
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic