2011最新java考题测验_第1页
2011最新java考题测验_第2页
2011最新java考题测验_第3页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、2011最新java考题测验第一部分:选择题question no: 11、public class testpublic static void mainplease write the output result :question no:21. public class test6. public static void main13. 考试用书14. what is the result?a. abdcbdcbb. abcdabcdc. compilation fails.d. an exception is thrown at runtime。question no: 7which

2、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 be

3、an 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

4、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. j

5、sp有哪些内置对象和动作?它们的作用分别是什么?4、sql问答题0select * from table和0select * from tablewhere 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、 查询同一个身份证号码有两条以上记

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论