Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Diffcult Mock Question from ?K

 
Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Given the definition of SomeObject and that an instance of SomeObject is bound as a session attribute:
8. package com.example:
9. public class SomeObject implements
10. javax.servlet.http.HttpSessionBindingListner{
11. // more code here
12. }
Which is true?
A. Only single instance of MyObject may exist within a session.
B. The unbound method of the MyObject instance is called when the session to which it is bound to times out.
C. The com.example.MyObject must be declared as a servlet event listener in the web DD
D. The valueUnbound method of the MyObject instance is called when the session to which it is bound times out.
 
Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MyObject=SomeObject

Note: I modified the original question.
 
B.Sathish
Ranch Hand
Posts: 372
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
D is the right answer
 
Alexandre Cervieri
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by B Sathish:
D is the right answer


Hi Alec, maybe I'm losing some detail, but why did you consider this question difficult?
I agree with Sathish the answer is D and it seems to be an easy question.
[ September 28, 2005: Message edited by: Alexandre Cervieri ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic