Multiple choice

Which of the following JSP session method returns the maximum time interval that the servlet container will keep this session open between client accesses?

  1. public int getMaxInactiveInterval()

  2. public void setMaxInactiveInterval(int interval)

  3. public void invalidate()

  4. public long getLastAccessedTime()

  5. none of the above

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

Yes, it returns the maximum time interval that the servlet container will keep this session open between client accesses.