<strike id="6q0um"></strike>
  • <strike id="6q0um"><s id="6q0um"></s></strike>
  • <ul id="6q0um"></ul><strike id="6q0um"></strike>

    當前位置:高考升學網 > 招聘筆試題 > 正文

    思遷數碼科技Java軟件工程師筆試題和面試題答案(二)

    更新:2023-09-15 18:38:30 高考升學網

      C.the code will not compile.

      D.None of these.

      7:

      What is the result when you compile and run the following code?

      public class ThrowsDemo

      {

      static void throwMethod()

      {

      System.out.println("Inside throwMethod.");

      throw new IllegalAccessException("demo");

      }

      public static void main(String args[])

      {

      try

      {

      throwMethod();

      }

      catch (IllegalAccessException e)

      {

      System.out.println("Caught " + e);

      }

      }

      }

      Choices:

      What is the result when you compile and run the following code?

      public class ThrowsDemo

      {

      static void throwMethod()

      {

      System.out.println("Inside throwMethod.");

      throw new IllegalAccessException("demo");

      }

      public static void main(String args[])

      {

      try

      {

      throwMethod();

      }

      catch (IllegalAccessException e)

      {

      System.out.println("Caught " + e);

      }

      }

      }

      Choices:

      A.Compilation error

      B.Runtime error

      C.Compile successfully, nothing is printed.

      D.Inside throwMethod. followed by caught:java.lang.IllegalAccessExcption: demo

      8:假定a和b為int型變量,則執行下述語句組后,b的值為

      a=1;

      b=10;

      do

      {

      b-=a;

      a++;

      } while (b--<0);

      A.9

      B.-2

      C.-1

      D.8

      9:

      public class X{

      public Object m(){

      Object o = new Float(3.14F);//line 3

      Object [] oa = new Object;//line 4

      oa[0] = o;//line 5

      o=null;//line 6

      return oa[0];//line 7

      }

      }

      When is the Float object, created in line 3,eligible for garbage collection?

      public class X{

      public Object m(){

      Object o = new Float(3.14F);//line 3

      Object [] oa = new Object;//line 4

      oa[0] = o;//line 5

      o=null;//line 6

      return oa[0];//line 7

      }

      }

      When is the Float object, created in line 3,eligible for garbage collection?

      A.just after line 5.

      B.just after line 6

      C.just after line 7(that is,as the method returns)

      D.never in this method

      10:Math.round(-11.5)等於多少?

      A.-11

      B.-12

      C.-11.5

      D.none

      11:In the following pieces of code, which one will compile without any error?

      A.StringBuffer sb1 = "abcd";

      B.Boolean b = new Boolean("abcd");

      C.C: byte b = 255;

      D.float fl = 1.2;

      12:

      Give the following method:

      public void method( ){

      String a,b;

      a=new String(“hello world”);

      b=new String(“game over”);

      System.out.println(a+b+”ok”);

      a=null;

      a=b;

      System.out.println(a);

      }

      In the absence of compiler optimization, which is the earliest point the object a refered is definitely elibile to be garbage collection.

      Give the following method:

      public void method( ){

      String a,b;

      a=new String(“hello world”);

      b=new String(“game over”);

      System.out.println(a+b+”ok”);

      a=null;

      a=b;

      System.out.println(a);

      }

      In the absence of compiler optimization, which is the earliest point the object a refered is definitely elibile to be garbage collection.

      A.before line 5

      B.before line 6

      C.before line 7

      D.before line 9

      13:

      Give the following java class:

      public class Example{

      static int x[]=new int[15];

      public static void main(String args[]){

      System.out.println(x[5]);

      }

      }

      Which statement is corrected?

      Give the following java class:

      public class Example{

      static int x[]=new int[15];

      public static void main(String args[]){

      System.out.println(x[5]);

      }

      }

      Which statement is corrected?

      A.When compile, some error will occur.

    最新圖文

    2020年河北新聞網兩學一做

    時間:2023-09-18 07:0:24

    2020年河北新聞網兩學一做

    時間:2023-09-15 11:0:59

    兩學一做學習教育知

    時間:2023-09-21 06:0:30

    2020年開展兩學一做學習教

    時間:2023-09-19 21:0:30
    亚洲AV无码欧洲AV无码网站| 亚洲jizzjizz在线播放久| 456亚洲人成在线播放网站| 亚洲av无码一区二区三区乱子伦| 亚洲综合熟女久久久30p| AV在线亚洲男人的天堂| 亚洲福利中文字幕在线网址| 在线观看亚洲电影| 国产精品亚洲二区在线| 亚洲?V无码成人精品区日韩| 亚洲va中文字幕无码| 亚洲麻豆精品国偷自产在线91| 亚洲国产精品碰碰| 国产综合亚洲专区在线| 亚洲男同帅GAY片在线观看| 亚洲精品成人片在线播放 | 国产亚洲人成无码网在线观看 | 亚洲精品高清国产一线久久| 国产v亚洲v天堂无码网站| 亚洲福利视频导航| 久久精品亚洲精品国产色婷| 亚洲国产美女视频| 亚洲一区二区三区高清不卡| 亚洲日韩AV一区二区三区中文| 亚洲国产成人久久精品大牛影视 | 亚洲网址在线观看你懂的| 日韩精品亚洲人成在线观看| 亚洲欧洲国产综合| 亚洲综合精品成人| WWW国产亚洲精品久久麻豆| 亚洲国产精品一区二区第四页 | 亚洲无码在线播放| 亚洲视频中文字幕| 亚洲色欲色欲www| 亚洲AV成人精品日韩一区| 国产成人99久久亚洲综合精品| 亚洲老妈激情一区二区三区| 亚洲免费视频在线观看| 亚洲伊人色一综合网| 亚洲AV色无码乱码在线观看 | 久久亚洲国产精品123区|