全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
华为招聘Java面试题:概念题:1. 描述Struts体系结构?对应各个部分的开发工作主要包括哪些?2. JSP有哪些内置对象和动作?它们的作用分别是什么? 第一部分:选择题QUESTION NO: 11、public class Test public static void changeStr(String str)str=welcome;public static void main(String args) String str=1234;changeStr(str);System.out.println(str);Please write the output result :QUESTION NO:21. public class Test 2. static boolean foo(char c) 3. System.out.print(c);4. return true;5. 6. public static void main( String argv ) 7. int i =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. class A 2. protected int method1(int a, int b) return 0; 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. public class Outer2. public void someOuterMethod() 3. / Line 34. 5. public class Inner6. public static void main( Stringargv ) 7. Outer o = new Outer();8. / Line 89. 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 JSP有哪些内置对象和动作?它们的作用分别是什么?3、SQL问答题SELECT * FROM TABLE和SELECT * FROM TABLEWHERE NAME LIKE % AND ADDR LIKE %AND (1_ADDR LIKE % OR 2_ADDR LIKE %OR 3_ADDR LIKE % OR 4_ADDR LIKE % )的检索结果为何不同?4、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 varch
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025广东阳江阳春市公安局招聘警务辅助人员备考题库含答案详解(模拟题)
- 2025年宁波市鄞州区云龙镇招聘编外人员1人备考题库附答案详解(模拟题)
- 2025巴彦淖尔杭锦后旗招8名社区工作者备考题库含答案详解(b卷)
- 2025下半年虹口区凉城新村街道见习社区工作者(辅工)公开招聘11人备考题库及答案详解(夺冠系列)
- 轨道切换安全管理实施办法
- 2026农银汇理基金管理有限公司校园招聘3人备考题库含答案详解(巩固)
- 2025年舟山市普陀区桃花镇及下属单位工作人员招聘4人备考题库含答案详解(满分必刷)
- 个性化医疗服务方案与医护绩效关联
- 2025年淮北市消防救援支队公开招聘政府专职消防文员17人备考题库及答案详解一套
- 2025年喀喇沁左翼蒙古族自治县面向社会公开招聘社区专职工作者15人备考题库及完整答案详解
- 机械振动学习题解答(三)
- 艺术学概论之实用艺术
- 茶艺师(技师)理论考试(重点)题库300题(含答案解析)
- HC网络设备巡检报告
- 俄语实用语法智慧树知到答案章节测试2023年哈尔滨师范大学
- GB/T 17880.6-1999铆螺母技术条件
- GB/T 528-2009硫化橡胶或热塑性橡胶拉伸应力应变性能的测定
- 设备机房接管验收课件
- 《制度经济学》全套课件
- XX公司钢结构安全技术交底方案
- 部编版小学语文三年级(下册)学期课程纲要
评论
0/150
提交评论