<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    seaairland

     

    華為公司 java 面試題

    第一部分:選擇題
    QUESTION NO: 1
    1、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:2
    1. 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')&&(i<2); foo('C')){
    9. i++ ;
    10. foo('D');
    12. }
    13. }
    14. }
    What is the result?
    A. ABDCBDCB
    B. ABCDABCD
    C. Compilation fails.
    D. An exception is thrown at runtime.

    QUESTION NO: 3
    1. 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: 4
    1. public class Outer{
    2. public void someOuterMethod() {
    3. // Line 3
    4. }
    5. public class Inner{}
    6. public static void main( String[]argv ) {
    7. Outer o = new Outer();
    8. // Line 8
    9. }
    10. }
    Which instantiates an instance of Inner?
    A. new Inner(); // At line 3
    B. new Inner(); // At line 8
    C. new o.Inner(); // At line 8
    D. new Outer.Inner(); // At line 8//new Outer().new Inner()

    QUESTION NO: 5
    Which method is used by a servlet to place its session ID in a URL that is written to the servlet’s 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: 6
    Which two are equivalent? (Choose two)
    A. <%= YoshiBean.size%>
    B. <%= YoshiBean.getSize()%>
    C. <%= YoshiBean.getProperty("size")%>
    D. <jsp:getProperty id="YoshiBean" param="size"/>
    E. <jsp:getProperty name="YoshiBean" param="size"/>
    F. <jsp:getProperty id="YoshiBean" property="size"/>
    G. <jsp:getProperty name="YoshiBean" property="size"/>

    QUESTION NO: 7
    Which 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體系結(jié)構(gòu)?對(duì)應(yīng)各個(gè)部分的開(kāi)發(fā)工作主要包括哪些?

    ?

    ?

    ?

    ?

    ?

    ?

    2.??? XML包括哪些解釋技術(shù),區(qū)別是什么?

    ?

    ?


    3.??? JSP有哪些內(nèi)置對(duì)象和動(dòng)作?它們的作用分別是什么?

    ?

    ?

    ?

    ?

    ?

    ?


    4、SQL問(wèn)答題
    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 '%%' )
    的檢索結(jié)果為何不同?

    ?

    5、SQL問(wèn)答題
    表結(jié)構(gòu):
    1、??? 表名:g_cardapply
    字段(字段名/類型/長(zhǎng)度):
    g_applyno??????? varchar?? 8;//申請(qǐng)單號(hào)(關(guān)鍵字)
    g_applydate???? bigint???? 8;//申請(qǐng)日期
    g_state??????? varchar???? 2;//申請(qǐng)狀態(tài)
    2、??? 表名:g_cardapplydetail
    字段(字段名/類型/長(zhǎng)度):
    g_applyno??????? varchar???? 8;//申請(qǐng)單號(hào)(關(guān)鍵字)
    g_name??????? varchar???? 30;//申請(qǐng)人姓名
    g_idcard??????? varchar???? 18;//申請(qǐng)人身份證號(hào)
    g_state??????? varchar???? 2;//申請(qǐng)狀態(tài)
    其中,兩個(gè)表的關(guān)聯(lián)字段為申請(qǐng)單號(hào)。
    題目:
    1、??? 查詢身份證號(hào)碼為440401430103082的申請(qǐng)日期
    2、??? 查詢同一個(gè)身份證號(hào)碼有兩條以上記錄的身份證號(hào)碼及記錄個(gè)數(shù)
    3、??? 將身份證號(hào)碼為440401430103082的記錄在兩個(gè)表中的申請(qǐng)狀態(tài)均改為07
    4、??? 刪除g_cardapplydetail表中所有姓李的記錄

    posted on 2006-05-21 14:36 chenhui 閱讀(576) 評(píng)論(2)  編輯  收藏

    評(píng)論

    # re: 華為公司 java 面試題 2006-05-22 11:36 guest

    呵呵。你的Blog里能有幾個(gè)是你自己寫的呀。
    暈……
    copy and copy.again and again.
    上帝沖我笑著說(shuō)“這就是中國(guó)的軟件行業(yè)現(xiàn)景!你傻小子啥都不知道了吧”  回復(fù)  更多評(píng)論   

    # re: 華為公司 java 面試題 2006-09-06 10:55 guest2

    暈什么,你連整理都不會(huì)還笑別人,至少版主給人提供了檢索材料,你做了什么  回復(fù)  更多評(píng)論   


    只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


    網(wǎng)站導(dǎo)航:
     

    導(dǎo)航

    統(tǒng)計(jì)

    常用鏈接

    留言簿(1)

    隨筆分類

    隨筆檔案

    文章分類

    文章檔案

    介紹 IOC

    友情鏈接

    最新隨筆

    搜索

    積分與排名

    最新評(píng)論

    閱讀排行榜

    評(píng)論排行榜

    主站蜘蛛池模板: 男男gay做爽爽的视频免费| 亚洲V无码一区二区三区四区观看| 亚洲综合图片小说区热久久| 又粗又大又长又爽免费视频| 亚洲国产免费综合| ZZIJZZIJ亚洲日本少妇JIZJIZ| 亚洲色精品88色婷婷七月丁香| 成年大片免费视频播放一级| 亚洲午夜精品一级在线播放放| 日日躁狠狠躁狠狠爱免费视频| 国产精品亚洲综合一区| ssswww日本免费网站片| 中国xxxxx高清免费看视频| 免费无码又爽又刺激聊天APP| 亚洲最大在线观看| 国产日本一线在线观看免费| 亚洲日本天堂在线| 91在线免费视频| 成人免费看黄20分钟| 亚洲国产老鸭窝一区二区三区| 色欲色香天天天综合网站免费| 亚洲精品欧洲精品| 午夜免费福利网站| 精品亚洲成a人片在线观看少妇| 91久久成人免费| 亚洲人成色777777精品| 亚洲av成人一区二区三区在线观看| 国产精品福利片免费看| 亚洲一区二区在线视频| 一个人免费观看视频www| 日韩欧美亚洲国产精品字幕久久久| 亚洲毛片av日韩av无码| 99久久免费中文字幕精品| 亚洲熟妇AV日韩熟妇在线| 亚洲乱码中文字幕综合234| 久久国产色AV免费看| 亚洲AV无码片一区二区三区 | a毛片在线还看免费网站| 亚洲嫩草影院在线观看| 免费午夜爽爽爽WWW视频十八禁 | 自拍偷自拍亚洲精品情侣|