更多“与HttpSessionListener接口有关的方法是()A、Session InitializedB、Session CreatedC、Session FinializedD、Session Destroyed”相关问题
  • 第1题:

    如果Session(“a”)=1,Session(“b”)=2,请问Session(“a”)+Session(“b”)的值是()

    • A、12
    • B、3
    • C、ab
    • D、以上都不对

    正确答案:D

  • 第2题:

    如果不希望JSP网页支持Session,应该如何办?()

    • A、调用HttpSession的invalidate()方法
    • B、〈%@ page session="false" /〉
    • C、〈%@ page session 〉
    • D、〈jsp:useBean id= "user" class= "UserData" scope= "session" /〉

    正确答案:B

  • 第3题:

    Hibernate对象从瞬时(即临时状态)到持久状态转换的方式有()

    • A、调用session的save方法
    • B、调用session的create方法
    • C、调用session的update方法
    • D、调用session的load方法

    正确答案:A,C

  • 第4题:

    Hibernate对象从临时状态到持久状态转换的方式有?()

    • A、调用session的save方法
    • B、调用session的close方法
    • C、调用session的clear方法
    • D、调用session的evict方法

    正确答案:A

  • 第5题:

    SESSION协商成功率=SESSION协商成功次数/(SESSION协商成功次数+SESSION协商失败次数)×100%。


    正确答案:正确

  • 第6题:

    下面哪个方法可使session无效() 

    • A、session.setAttribute()
    • B、session.getAttribute()
    • C、session.invalidate()
    • D、session.removeAttribute()

    正确答案:C

  • 第7题:

    下面是设置和取出Session对象的代码。 设置Session的代码是: Session[“greeting”]=“hellowang!”; 取出该Session对象的语句如下: stringMyvar=()


    正确答案:Session[“greeting”].ToString()

  • 第8题:

    以下哪个状态是LDP Session成功建立的标志()。

    • A、INITIALIZED
    • B、OPENREC
    • C、OPENSENT
    • D、OPERATIONAL

    正确答案:D

  • 第9题:

    跟PHP会话控制有关的方法有()。

    • A、session_start()
    • B、session_destroy()
    • C、$_SESSION[’参数名’]
    • D、setcookie()

    正确答案:A,B,C

  • 第10题:

    多选题
    下列操作Session时,代码错误的是()
    A

    HttpSession session=request.getSession(true);

    B

    Session session=new Session();

    C

    session.setAttribute(username,admin);

    D

    String username=(String)session.getAttribute(username);

    E

    response.add Session(Session);


    正确答案: E,C
    解析: 暂无解析

  • 第11题:

    单选题
    VRRP与BFD进行联动的配置命令是()
    A

    Vrrp vrid 1 track bfd-session session-name 1 reduced 100

    B

    bfd-session Vrrp vrid 1 track session-name 1 reduced 100

    C

    track vrrp vrid 1 bfd-session session-name 1 reduced 100

    D

    Vrrp vrid 1 track bfd-session-name 1 reduced 100


    正确答案: C
    解析: 暂无解析

  • 第12题:

    单选题
    Hibernate对象从临时状态到持久状态转换的方式有?()
    A

    调用session的save方法

    B

    调用session的close方法

    C

    调用session的clear方法

    D

    调用session的evict方法


    正确答案: A
    解析: 暂无解析

  • 第13题:

    可以设置session对象的()属性改变session对象的有效时间,如果要结束session,则使用session对象的()方法.


    正确答案:timeout;abandon

  • 第14题:

    下面不是清理Hibernate缓存的方法有()

    • A、提交事务
    • B、调用session的flush方法
    • C、调用session的查询方法
    • D、关闭session

    正确答案:C

  • 第15题:

    Hibernate对象从瞬时到持久状态转换的方式有()。

    • A、调用session的save方法
    • B、调用session的create方法
    • C、调用session的update方法
    • D、调用session的load方法

    正确答案:A

  • 第16题:

    Hibernate中核心接口有() 

    • A、Session接口
    • B、Session Factory接口
    • C、Configuration接口
    • D、Callback接口

    正确答案:A,B,C

  • 第17题:

    如何理解Session Factory与Session的关系及它们的意义()

    • A、Session Factory的主要用来生成Session对象
    • B、Session Factory是一个重量级的对象,一个应用程序只创建一个Session Factory实例,而可创建多个Session对象。
    • C、Session Factory实例代表一个所要访问的数据库
    • D、都正确

    正确答案:D

  • 第18题:

    ession对象的()方法用于设置会话的超时时间。

    • A、session.setAttribute(“time”,30);
    • B、session.setMaxTime(30);
    • C、session.getMaxInactiveInterval();
    • D、session.setMaxInactiveInterval(30);

    正确答案:B

  • 第19题:

    DO业务的Session呼叫控制流程,包含以下哪几种()。

    • A、Session建立流程
    • B、Session协商流程
    • C、Session配置流程
    • D、Session释放流程

    正确答案:A,C

  • 第20题:

    You have a use case in your web application that adds several session-scoped attributes. At the end of theuse case, one of these objects, the manager attribute, is removed and then it needs to decide which of theother session-scoped attributes to remove. How can this goal be accomplished?()

    • A、The object of the manager attribute should implement the HttpSessionBindingListener and it should call the removeAttribute method on the appropriate session attributes.
    • B、The object of the manager attribute should implement the HttpSessionListener and it should call the removeAttribute method on the appropriate session attributes.
    • C、The object of the manager attribute should implement the HttpSessionBindingListener and it should call the deleteAttribute method on the appropriate session attributes.
    • D、The object of the manager attribute should implement the HttpSessionListener and it should call the deleteAttribute method on the appropriate session attributes.

    正确答案:A

  • 第21题:

    多选题
    Hibernate对象从瞬时(即临时状态)到持久状态转换的方式有()
    A

    调用session的save方法

    B

    调用session的create方法

    C

    调用session的update方法

    D

    调用session的load方法


    正确答案: C,B
    解析: 暂无解析

  • 第22题:

    单选题
    You have a use case in your web application that adds several session-scoped attributes. At the end of theuse case, one of these objects, the manager attribute, is removed and then it needs to decide which of theother session-scoped attributes to remove. How can this goal be accomplished?()
    A

    The object of the manager attribute should implement the HttpSessionBindingListener and it should call the removeAttribute method on the appropriate session attributes.

    B

    The object of the manager attribute should implement the HttpSessionListener and it should call the removeAttribute method on the appropriate session attributes.

    C

    The object of the manager attribute should implement the HttpSessionBindingListener and it should call the deleteAttribute method on the appropriate session attributes.

    D

    The object of the manager attribute should implement the HttpSessionListener and it should call the deleteAttribute method on the appropriate session attributes.


    正确答案: C
    解析: 暂无解析

  • 第23题:

    填空题
    可以设置session对象的()属性改变session对象的有效时间,如果要结束session,则使用session对象的()方法.

    正确答案: timeout,abandon
    解析: 暂无解析