Multiple choice

What does invalidate() method of session in JSP (Java Server Pages) do?

  1. This method is used to unbind any object associated with the current session.

  2. This method is used to remove the object, binds with the specified name.

  3. This method is used to bind an object to the session with the specified name.

  4. This method is used to create a new session.

  5. None of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Yes, this is true about invalidate() method in JSP.