当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

GivenanHttpServletRequestrequestandanHttpServletResponseresponse:41.HttpSessionsession=nul


GivenanHttpServletRequestrequestandanHttpServletResponseresponse:41.HttpSessionsession=null;42.//insertcodehere43.if(session==null){44.//dosomethingifsessiondoesnotexist45.}else{46.//dosomethingifsessionexists47.}Toimplementthedesignintent,whichstatementmustbeinsertedatline42?()

A、session=response.getSession();

B、session=request.getSession();

C、session=request.getSession(true);

D、session=request.getSession(false);

E、session=request.getSession("jsessionid");

参考答案
您可能感兴趣的试题
    暂无相关推荐