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

来源:java认证发布时间:2012-11-12 12:48:18java认证视频

 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问答题
select * from table

select * from table 
where name like ’%%’ and addr like ’%%’ 
and (1_addr like ’%%’ or 2_addr like ’%%’ 
or 3_addr like ’%%’ or 4_addr like ’%%’ ) 
的检索结果为何不同?

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表中所有姓李的记录

视频学习

我考网版权与免责声明

① 凡本网注明稿件来源为"原创"的所有文字、图片和音视频稿件,版权均属本网所有。任何媒体、网站或个人转载、链接转贴或以其他方式复制发表时必须注明"稿件来源:我考网",违者本网将依法追究责任;

② 本网部分稿件来源于网络,任何单位或个人认为我考网发布的内容可能涉嫌侵犯其合法权益,应该及时向我考网书面反馈,并提供身份证明、权属证明及详细侵权情况证明,我考网在收到上述法律文件后,将会尽快移除被控侵权内容。

最近更新

社区交流

考试问答