久久综合丝袜日本网手机版,日韩欧美中文字幕在线三区,亚洲精品国产品国语在线,极品在线观看视频婷婷

      <small id="aebxz"><menu id="aebxz"></menu></small>
    1. 華為公司 java人員面試題

      時(shí)間:2022-07-11 16:11:14 面試 我要投稿
      • 相關(guān)推薦

      華為公司 java人員面試題

      第一部分:選擇題

      華為公司 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. 


      【華為公司 java人員面試題】相關(guān)文章:

      深圳華為公司招聘信息08-04

      珠海有華為分公司嗎?03-24

      java開(kāi)發(fā)人員自我介紹11-06

      華為面試經(jīng)歷06-18

      親歷華為面試06-18

      華為新員工報(bào)到Q&A(華為入職須知)04-27

      華為面試問(wèn)題03-24

      華為幾號(hào)發(fā)工資04-19

      華為都有哪些部門02-28

      華為資格面試內(nèi)容08-10