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

    當(dāng)前位置:高考升學(xué)網(wǎng) > 招聘筆試題 > 正文

    思遷數(shù)碼科技Java軟件工程師筆試真題

    更新:2023-09-20 09:20:35 高考升學(xué)網(wǎng)
      選擇題

      1:Which statements about Java code security are not true?

      A.The bytecode verifier loads all classes needed for the execution of a program.

      B.Executing code is performed by the runtime interpreter.

      C.At runtime the bytecodes are loaded, checked and run in an interpreter.

      D.The class loader adds security by separating the namespaces for the classes of the local file system from those imported from network sources.

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

      public class Test

      {

      public void method()

      {

      for(int i = 0; i < 3; i++)

      {

      System.out.print(i);

      }

      System.out.print(i);

      }

      }

      Choices:

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

      public class Test

      {

      public void method()

      {

      for(int i = 0; i < 3; i++)

      {

      System.out.print(i);

      }

      System.out.print(i);

      }

      }

      Choices:

      A.0122

      B.0123

      C.Compilation error

      D.None of these

      3:

      Give the following code:

      public class Example{

      public static void main(String args[] ){

      int l=0;

      do{

      System.out.println(“Doing it for l is:”+l);

      }while(--l>0)

      System.out.println(“Finish”);

      }

      }

      Which well be output:

      Give the following code:

      public class Example{

      public static void main(String args[] ){

      int l=0;

      do{

      System.out.println(“Doing it for l is:”+l);

      }while(--l>0)

      System.out.println(“Finish”);

      }

      }

      Which well be output:

      A.Doing it for l is 3

      B.Doing it for l is 1

      C.Doing it for l is 2

      D.Doing it for l is 0

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

      A.11

      B.12

      C.11.5

      D.none

      5:

      What will happen when you attempt to compile and run the following code?

      int Output = 10;

      boolean b1 = false;

      if((b1 == true) && ((Output += 10) == 20))

      {

      System.out.println("We are equal " + Output);

      }

      else

      {

      System.out.println("Not equal! " + Output);

      }

      Choices:

      What will happen when you attempt to compile and run the following code?

      int Output = 10;

      boolean b1 = false;

      if((b1 == true) && ((Output += 10) == 20))

      {

      System.out.println("We are equal " + Output);

      }

      else

      {

      System.out.println("Not equal! " + Output);

      }

      Choices:

      A.Compilation error, attempting to perform binary comparison on logical data type

      B.Compilation and output of "We are equal 10".

      C.Compilation and output of "Not equal! 20".

      D.Compilation and output of "Not equal! 10".

      6:

      What will happen when you attempt to compile and run the following code?

      (Assume that the code is compiled and run with assertions enabled.)

      public class AssertTest{

      public void methodA(int i){

      assert i >= 0 : methodB();

      System.out.println(i);

      }

      public void methodB(){

      System.out.println("The value must not be negative");

      }

      public static void main(String args[]){

      AssertTest test = new AssertTest();

      test.methodA(-10);

      }

      }

      What will happen when you attempt to compile and run the following code?

      (Assume that the code is compiled and run with assertions enabled.)

      public class AssertTest{

      public void methodA(int i){

      assert i >= 0 : methodB();

      System.out.println(i);

      }

      public void methodB(){

      System.out.println("The value must not be negative");

      }

      public static void main(String args[]){

      AssertTest test = new AssertTest();

      test.methodA(-10);

      }

      }

      A.it will print -10

      B.it will result in AssertionError showing the message-“the value must not be negative”.

    相關(guān)文章

    最新圖文

    亚洲AV无码专区在线厂| 亚洲精品蜜夜内射| 亚洲?V无码成人精品区日韩| 亚洲欧美日韩国产成人| 亚洲a∨无码男人的天堂| 亚洲午夜久久久精品电影院| 亚洲第一页在线视频| 亚洲日韩国产精品无码av| 亚洲美女一区二区三区| 亚洲毛片免费观看| 亚洲人成激情在线播放| 亚洲一区二区三区久久久久| 国产精品亚洲片在线va| 亚洲娇小性xxxx| 亚洲性无码一区二区三区| 亚洲人成色在线观看| 国产精品亚洲一区二区在线观看| 亚洲av纯肉无码精品动漫| 国产精品亚洲五月天高清| 亚洲国产精品激情在线观看| 亚洲一区二区三区免费| 亚洲精品无码MV在线观看| 亚洲av中文无码乱人伦在线r▽| 亚洲福利在线视频| 亚洲色欲或者高潮影院| 亚洲一区二区三区不卡在线播放| 国产精品亚洲自在线播放页码 | 亚洲妇女熟BBW| 亚洲成AV人片高潮喷水| 国产精品成人亚洲| 亚洲中文字幕在线乱码| 亚洲AV成人精品网站在线播放| 亚洲色图视频在线观看| 亚洲午夜久久久精品电影院| 亚洲色偷偷偷综合网| www.亚洲一区| 精品亚洲综合在线第一区| 久久久久亚洲av无码专区喷水| 亚洲中字慕日产2021| 亚洲AV无码XXX麻豆艾秋| 国产午夜亚洲不卡|