全文预览已结束
付费下载
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
华为招聘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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年金乡县事业单位人员招聘考试模拟试题及答案解析
- 2026年尉犁县公务员招聘考试参考题库及答案解析
- 2026年托克托县公务员招聘考试备考题库及答案解析
- 2026年鹿寨县事业单位人员招聘考试备考试题及答案解析
- 2026年桑植县公务员招聘笔试模拟试题及答案解析
- 2026年洛川县公务员招聘笔试备考题库及答案解析
- 中联重科2027届全球校园招聘(机器人和人工智能方向)考试模拟试题及答案详解
- 2026年马鞍山安徽和州文化旅游集团有限公司公开招聘劳务派遣制工作人员3名考试备考题库及答案详解
- 2026年辉县市事业单位人员招聘考试参考题库及答案解析
- 2026年芷江侗族自治县公务员招聘笔试备考试题及答案解析
- 《贵州省水利水电工程系列概(估)算编制规定》(2022版 )
- 铝合金门窗生产作业指导书
- 供应商调查表
- 国学诵读(国学教育)全套教学课件
- 电路(上海电力大学)智慧树知到课后章节答案2023年下上海电力大学
- 学科大概念视域下的高中化学单元整体教学设计
- 拉杆钢结构雨篷计算
- 洛阳荣基矿业开发有限公司洛宁县杨坪沟金矿矿产资源开采与生态修复方案
- (完整)注册安全工程师考试题库(含答案)
- JJF 1915-2021倾角仪校准规范
- DB11-T 1118-2022城镇污水处理能源消耗限额
评论
0/150
提交评论