Imagine that you want to set the inactive time for a particular servlet to 10 minutes. Which of the following is the preferred way to do it?

  1. HttpSession.setMinInactiveInterval(10);

  2. HttpSession.setMinInactiveInterval(10 * 60);

  3. HttpSession.setMaxInactiveInterval(10 * 60);

  4. HttpSession.setMaxInactiveInterval(10);


Correct Option: C

Find more quizzes: