• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Diffcult Mock Question from ?K

 
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
MyObject=SomeObject

Note: I modified the original question.
 
Ranch Hand
Posts: 372
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
D is the right answer
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
reply
    Bookmark Topic Watch Topic
  • New Topic