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

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

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

    paulwong

    華為公司 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體系結構?對應各個部分的開發工作主要包括哪些?

    ?

    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、??? 查詢身份證號碼為440401430103082的申請日期

    2、??? 查詢同一個身份證號碼有兩條以上記錄的身份證號碼及記錄個數

    3、??? 將身份證號碼為440401430103082的記錄在兩個表中的申請狀態均改為07

    4、??? 刪除g_cardapplydetail表中所有姓李的記錄

    posted on 2006-05-21 18:46 paulwong 閱讀(2809) 評論(2)  編輯  收藏 所屬分類: J2EE

    Feedback

    # re: 華為公司 java 面試題 2006-05-21 19:24 兵臨城下

    有點暈!基本功不扎實啊!大公司筆試都是基礎題,而小公司主要看實際經驗。
    有沒有答案???
    帶詳細解釋的?給一個  回復  更多評論   

    # re: 華為公司 java 面試題 2006-07-31 09:47 x+y=z

    這是scjp的考試題吧  回復  更多評論   


    主站蜘蛛池模板: 亚洲国产精品日韩在线观看| 免费网站看av片| av无码免费一区二区三区| 亚洲AV成人片色在线观看 | 免费在线中文日本| 亚洲午夜精品一级在线播放放| 美女啪啪网站又黄又免费| 日本特黄a级高清免费大片| 亚洲综合国产成人丁香五月激情| 在人线av无码免费高潮喷水| 亚洲午夜电影在线观看高清| 久久久久久久久免费看无码| 亚洲色少妇熟女11p| 国产男女猛烈无遮档免费视频网站 | 在线免费观看亚洲| 亚洲精品欧洲精品| 台湾一级毛片永久免费| 亚洲一级免费毛片| 国产成人免费全部网站| 羞羞视频免费网站日本| 亚洲色大成网站www永久一区| 久久久久久久岛国免费播放| 337p日本欧洲亚洲大胆色噜噜| 999国内精品永久免费观看| 亚洲欧美精品午睡沙发| www亚洲精品少妇裸乳一区二区| 久青草视频97国内免费影视| 久久久久亚洲精品无码蜜桃 | 黄网站色成年片大免费高清| 亚洲日韩国产精品乱| 国产一精品一AV一免费| 亚洲丝袜中文字幕| 四虎成人免费网址在线| 九九免费观看全部免费视频| 2021国内精品久久久久精免费| 亚洲综合一区国产精品| 亚洲午夜无码久久| 亚洲日本中文字幕天堂网| 羞羞视频网站免费入口| 亚洲色图国产精品| 皇色在线视频免费网站|