You are not logged in.
Pages:: 1
#1 2015-11-06 11:56:20
Specifies that the cookie must be alive for one hour?
Java Quizzes SCWCD (Sun Certified Web Component Developer)
Question:
Which method correctly specifies that the cookie must be alive for one hour? Assume all variables are declared and initialized properly.
Option A):
cookie.setMaxAge(60);
Option B):
cookie.setMaxAge(1);
Option C):
cookie,setMaxAge(3600);
Option D):
cookie.setTime(1);
Correct Answer is Option C):
cookie,setMaxAge(3600);
Explanation:
The setMaxAge value is specified in seconds.
Online Web Tutorials And Interview Questions With Answers Forum:
https://globalguideline.com/forum/
Offline
2015-11-06 11:56:20
- Advertisement
- Ads By Google
Re: Specifies that the cookie must be alive for one hour?
\n