Forums Register Login

Doubt in sessions from Hanumant Deskhmukh book

+Pie Number of slices to send: Send
I am a bit confused about the answer to this question. Please advise.

Which of the following methods will be invoked on a session attribute that
implements appropriate interfaces when the session is invalidated? (Select one)
a sessionDestroyed of HttpSessionListener
b attributeRemoved of HttpSessionAttributeListener
c valueUnbound of HttpSessionBindingListener
d sessionWillPassivate of HttpSessionActivationListener

I think the answer should be "a" since the question clearly says invalidate, however the books says the answer is "C".
+Pie Number of slices to send: Send
The question states that: "methods will be invoked on a session attribute"
And HttpSessionBindingListener is the only interface that an attribute can implement so C is obvious.
+Pie Number of slices to send: Send
Thanks..confusion solved
get schwifty. tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 548 times.
Similar Threads
EJB Stateful Session bean vs HTTP Session
Doubt in Session Related Question -
question on mock exam
question on mock exam
doubt in session management
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 09:41:41.