试题详情
- 单项选择题 For debugging purposes, you need to record how many times a given JSP is invoked before the user’ssession has been created. The JSP’s destroy method stores this information to a database. Which JSPcode snippet keeps track of this count for the lifetime of the JSP page?()
A、<%! int count = 0; %><% if ( request.getSession(false) == null ) count++; %>
B、<%@ int count = 0; %>. <% if ( request.getSession(false) == null ) count++; %>
C、<% int count = 0;. if ( request.getSession(false) == null ) count++; %>
D、<%@ int count = 0;. if ( request.getSession(false) == null ) count++; %>
E、<%! int count = 0;. if ( request.getSession(false) == null ) count++; %>
- A
关注下方微信公众号,在线模考后查看
热门试题
- String s=&ensp
- Given the&ensp
- A programmer&en
- Which statemen
- Which two̳
- 如何定义静态域?静态域有什么特点?如何访
- 读取7个数(1—50)的整数值,每读取一
- 1. public&ensp
- Java语言中表达式-12>>3的结果是
- public class&e
- 现有 &ens
- public class&e
- 以下哪些jvm的垃圾回收方式采用的是复制
- class TestMain
- 共有几组i、j、k符合算式ijk+kji
- In the J
- 4位反序数,设N是一个四位数,它的9倍恰
- 以下关于JVM的叙述,哪项正确?()
- Given a co
- 现有: cla