nerdexam
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

1Z0-899 question #108 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)
  • A
    8% (3)
  • B
    3% (1)
  • C
    13% (5)
  • D
    77% (30)

Community Discussion

No community discussion yet for this question.

Full 1Z0-899 Practice