多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

You are building a Front Controller using a JSP page and you need to determine if the user’s session hasNOT been created yet and perform some special processing for this case. Which scriptlet code snippet willperform this test?()

  • A、<% if ( request.getSession(false) == null ) {// special processing} %>
  • B、<% if ( request.getHttpSession(false) == null ) {// special processing} %>
  • C、<% if ( requestObject.getSession(false) == null ) { // special processing} %>
  • D、<% if ( requestObject.getHttpSession(false) == null ) { // special processing} %>
正确答案:A
答案解析:
进入题库查看解析

微信扫一扫手机做题