Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
which interface must a class implement so that instances of the class are notified after any object is added to a session?
A. javax.servlet.http.HttpSessionListener
B. javax.servlet.http.HttpSessionValueListener
C. javax.servlet.http.HttpSessionBindingListener
D. javax.servlet.http.HttpSessionAttributeListener
the correct answer is D while i think it should be C.
SCBCD5, SCWCD5, SCJP5
"Even if you're on the right track, you'll get run over if you just sit there."
The correct answer is D. The key word is 'any'. If an object wants to be notified if it (the object itself) has been added to a session then the answer would be C. But to be notified if 'any' object is added to the session, the answer is D.
Bosun (SCJP, SCWCD).
So much trouble in the world -- Bob Marley
No. No. No. No. Changed my mind. Wanna come down. To see this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss