全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
第一部分:选择题QUESTION NO: 11、public class Test public static void changeStr(Stringstr)str = welcome ; public static void main(Stringargs)Stringstr = 1234 ;changeStr(str);System.out.println(str); Please write the output result :QUESTION NO:21.publicclassTest2.staticbooleanfoo(charc)3.System.out.print(c);4.returntrue;5.6.publicstaticvoidmain(Stringargv)7.inti=0;8.for(foo(A);foo(B)&(i2);foo(C)9.i+;10.foo(D);12.13.14.What is the result?A. ABDCBDCBB. ABCDABCDC. Compilation fails.D. An exception is thrown at runtime.QUESTION NO: 31.classA2.protectedintmethod1(inta,intb)return0;3.Which two are valid in a class that extends class A? (Choose two)A. public int method1(int a, int b) return 0; B. private int method1(int a, int b) return 0; C. private int method1(int a, long b) return 0; D. public short method1(int a, int b) return 0; E. static protected int method1(int a, int b) return 0; QUESTION NO: 41.publicclassOuter2.publicvoidsomeOuterMethod()3./Line34.5.publicclassInner6.publicstaticvoidmain(Stringargv)7.Outero=newOuter();8./Line89.10.Which instantiates an instance of Inner?A. new Inner(); / At line 3B. new Inner(); / At line 8C. new o.Inner(); / At line 8D. new Outer.Inner(); / At line 8/new Outer().new Inner()QUESTION NO: 5Which method is used by a servlet to place its session ID in a URL that is written to the servlets response output stream?A. The encodeURL method of the HttpServletRequest interface.B. The encodeURL method of the HttpServletResponse interface.C. The rewriteURL method of the HttpServletRequest interface.D. The rewriteURL method of the HttpServletResponse interface.QUESTION NO: 6Which two are equivalent? (Choose two)A. B. C. D. E. F. G. QUESTION NO: 7Which 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. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年金融科技监管框架应用考试试卷:云计算在金融监管报告的真实性验证
- 2025年科技行业人工智能伦理认证算法公平地域发展均衡伦理考核试卷
- 2025年房地产行业绿色建筑认证数字化能力考核试卷
- 2026年中国铁路郑州局集团有限公司招聘普通高校毕业生(一)考试笔试备考题库及答案解析
- 2025常州工程职业技术学院招聘高层次人才(第二批)4人笔试考试参考试题及答案解析
- 2025甘肃省民航机场集团招聘38人考试笔试参考题库附答案解析
- 2025北京大兴区大学生乡村医生岗位招聘5人考试笔试备考试题及答案解析
- 2025中盛远创建设集团有限公司招聘考试笔试备考试题及答案解析
- 2025天津河东区派遣制中学教师招聘考试笔试备考题库及答案解析
- 2025年江西青年职业学院招聘校医1人笔试考试参考题库及答案解析
- 植保无人机培训课件
- 胆总管结石伴急性化脓性梗阻性胆管炎的护理查房
- 六年级数学上册第一单元测试卷及答案
- 附录C.1 陆上风电、光伏建设项目质量验收范围划分1
- 国开电大《当代中国政治制度》形考任务1-4答案
- 增值服务承诺书
- 郭德纲于谦经典相声《我要穿越》台词
- 深圳市龙岗区2023年九年级上学期《数学》期中试题与参考答案
- 无违法犯罪记录证明申请表(个人)
- 四川省绵阳市绵阳中学英才学校2022-2023学年小升初数学自主招生备考卷含答案
- 招聘简章 招聘简章(4篇)
评论
0/150
提交评论