Oracle
1Z0-899 · Question #108
What code, inserted at line 21, is called prior to a session being migrated to a different JVM assuming the web application containing MyExample is deployed in a container which supports distributed…
The correct answer is D. public void sessionWillPassivate(HttpSessionEvent ev) {...}. See the full explanation below for the reasoning.
Question
What code, inserted at line 21, is called prior to a session being migrated to a different JVM assuming the web application containing MyExample is deployed in a container which supports distributed applications?
Exhibit
Options
- Apublic void valueUnbound(HttpSessionEvent ev) {...}
- Bpublic void sessionPassivated(HttpSessionEvent ev) {...}
- Cpublic void sessionDidActivate(HttpSessionEvent ev) {...}
- Dpublic void sessionWillPassivate(HttpSessionEvent ev) {...}
How the community answered
(39 responses)- A8% (3)
- B3% (1)
- C13% (5)
- D77% (30)
Community Discussion
No community discussion yet for this question.
