This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
4. 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 Answer: c Explanation The HttpSessionListener and HttpSessionAttributeListener are configured in the deployment descriptor. Therefore, even if a session attribute implements these interfaces, the sessionDestroyed() and attributeRemoved() methods will not be called on that attribute.
in my opinion, the anwer is b - since the question asks "...invoked on a session attribute...."
also the explanation doesnt make any sense.
SCJP 1.4 - 95% [ My Story ] - SCWCD 1.4 - 91% [ My Story ] Performance is a compulsion, not a option, if my existence is to be justified.