单项选择题几种会话维护技术中,最相似的两种技术是()。

A.URL重写技术和Cookie技术
B.URL重写技术和隐藏表单技术
C.Cookie技术和隐藏表单技术
D.隐藏表单技术和Servlet规范的HttpSession接口


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题哪两种会话跟踪技术最为接近?()

A.Cookie和session
B.Url重写和隐藏表单
C.Url重写和Cookie
D.隐藏表单和session

2.单项选择题MySession引用某HttpSession对象。当调用mySession.setAttribute时,一个HttpSessionBindingEvent对象将发往()。

A.HttpSessionListener的attributeAdded方法
B.ServletContextListener的attributeAdded方法
C.HttpSessionAttributeListener的attributeAdded方法
D.HttpSessionBindingListener的attributeAdded方法

3.多项选择题以下哪些是会话事件的监听API()。

A.javax.servlet.ServletContextListener
B.javax.Servlet.servletContextAttributeListener
C.javax.servlet.http.HttpWebSessionListener
D.javax.servlet.http.HttpSessionBindingListener

4.多项选择题Cookie的特性有()。

A.cookie有名称/值对
B.cookie保存在客户端
C.cookie中的信息在HTTP请求和响应的主体中交换
D.cookie有可以设置的生命周期

5.单项选择题J2EE中,哪个类的哪个方法用于创建对话?()

A.HttpServletRequest、getSession
B.HttpServletResponse、newSession
C.HtttpSession、newInstance
D.HttpSession、getSession

6.单项选择题设置session的有效时间使用的是该对象的什么方法?()

A.setAttribute()方法
B.getMaxInactiveInterval()方法
C.setMaxInactiveInterval()方法
D.setTime()方法

7.多项选择题MVC模式中一般情况servlet可以担任哪些角色?()

A.Controller中接受用户请求
B.View中返回响应信息,刷新用户界面
C.Model中处理业务逻辑
D.访问Model中的元素

8.多项选择题MVC模式包括哪几个层?()

A.模型层
B.管理层
C.视图层
D.控制层
E.数据层

10.单项选择题下列哪个接口用于获取关于数据库的结构信息()。

A.Statement
B.PreparedStatement
C.null
D.DatabaseMetaData