全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
第一部分:选择题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届江苏省镇江市丹徒区数学三下期中质量跟踪监视模拟试题含解析
- 2026年春风得意成语故事心态引导备课教案
- 2026年初中语文《水调歌头·明月几时有》中秋词教案
- 七年级生物下册 第四单元 第8章 第1节 人类的食物教案 (新版)北师大版
- 2026年初中成语故事《未雨绸缪》诗经典故拓展教案
- 人教版七年级美术下 2.1 色彩的魅力 教学设计
- 2026年飞翔的翅膀美甲设计
- 2026年碳中和目标的责任分担机制研究
- 2026年地基处理技术在工程中的应用
- 上海-2.6-2023-2024学年高中信息技术选择性必修1(沪科版2019)-教学设计-探究文本字符的处理-字符串的操作
- 头晕诊疗指南(2026年版)基层规范化诊疗
- 广东省学校财务审批制度
- 颈髓损伤患者的康复治疗康复训练
- 电商总经理绩效考核制度
- 生殖医学辅助生殖诊疗协议
- 2026年电气工程师基础理论考试题
- 煤矿隐蔽致灾普查方案评审意见
- GB/T 44886.2-2025网络安全技术网络安全产品互联互通第2部分:资产信息格式
- GB/T 46477-2025雷达站防雷技术规范
- 2025-2026学年沪教版七年级英语上册(全册)知识点梳理归纳
- 氨合成催化剂课件
评论
0/150
提交评论