加入收藏 | 网站地图
主页 > 中考 > 最新试题 >

JAVA题库:最新java试题测试(2)

2012-08-04 05:05 来源:【考文考理网 对此文章感兴趣的有:

question no: 7
which of the following statements regarding the lifecycle of a session bean are correct?
1. java.lang.illegalstateexception is thrown if sessioncontext.getejbobject is invoked when a stateful session bean instance is passivated.
2. sessioncontext.getrollbackonly does not throw an exception when a session bean with bean-managed transaction demarcation is activated.
3. an exception is not thrown when sessioncontext.getusertransaction is called in the afterbegin method of a bean with container-managed transactions.
4. jndi access to java:comp/env is permitted in all the sessionsynchronization methods of a stateful session bean with container-managed transaction demarcation.
5. accessing resource managers in the sessionsynchronization.afterbegin method of a stateful session bean with bean-managed transaction does not throw an exception.

第二部分:概念题
1. 描述struts体系结构?对应各个部分的开发工作主要包括哪些?

2. xml包括哪些解释技术,区别是什么?

3. jsp有哪些内置对象和动作?它们的作用分别是什么?

4、sql问答题
selectfrom table

selectfrom table
where name like ’%%’ and addr like ’%%’
and
的检索结果为何不同?

5、sql问答题
表结构:
1、 表名:g_cardapply
字段:
g_applyno varchar 8;//申请单号(关键字)
g_applydate bigint 8;//申请日期
g_state varchar 2;//申请状态
2、 表名:g_cardapplydetail
字段:
g_applyno varchar 8;//申请单号(关键字)
g_name varchar 30;//申请人姓名
g_idcard varchar 18;//申请人身份证号
g_state varchar 2;//申请状态
其中,两个表的关联字段为申请单号。
题目:
1、 查询身份证号码为440401430103082的申请日期
2、 查询同一个身份证号码有两条以上记录的身份证号码及记录个数
3、 将身份证号码为440401430103082的记录在两个表中的申请状态均改为07
4、 删除g_cardapplydetail表中所有姓李的记录


广告资讯:QQ:721800272