题目
A.顶一了,默认的会话超时时长、时间为30秒。
B.可以使用HttpSession类的getMaxInactiveInterval()方法把该值提取出来
C.定义了默认的会话超时时长。时长为30小时
D.可以使用Session类的getMaxInactiveInterval()方法把该值取出来
第1题
A.<welcome-file>start.jsp</welcome-file>
B.<welcome-file-list>start.jsp</welcome-file-list>
C.<welcome-list><welcome-file>start.jsp</welcome-file></welcome-list>
D.<welcome-file-list><welcome-file>start.jsp</welcome-file></welcome-file-list>
第2题
A.<welcome-file>start.jsp</welcome.-file>
B.<welcome-file-list>start.jsp</welcome.-file-list>
C.<welcome-file><welcome-file>start.jsp</welcome-file></welcome.-file>
D.<welcome-file-list><welcome-file>start.jsp</welcome.-file></welcome-file-list>
第4题
A.server.xml文件,servlet子目录,jar子目录
B.web.xml文件,classes子目录,jar子目录
C.server.xml文件,Servlet子目录
D.web.xml文件,classes子目录,lib子目录
第5题
A.毫秒
B.秒
C.分钟
D.小时
第6题
A.毫秒
B.秒
C.分钟
D.小时
第7题
第8题
第9题
A.一旦servlet被实例化后,包容器把一个ServletConfig类型的对象传送给init()方法
B.可以使用Servlet的getServletConfig()方法返回ServletConfig对象
C.ServletConfig对象的方法getInitParameter(name)返回初始化参数name的值,初始化参数一般定义在web.xml中
D.ServletConfig对象的方法getServletName()方法返回在web.xml中的
第10题
A.定义了默认的会话超时时长,时长为30秒
B.可以使用httpsession类的getMaxInactiveInterval()方法把该值取出来
C.定义了默认的会话超时时长,时长为30小时
D.可以使用Session类的getMaxInactiveInterval()刚发把该值取出来
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!