<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-15 18:38:30 高考升學(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日韩av不卡在线观看 | 亚洲午夜福利精品无码| 亚洲午夜视频在线观看| 亚洲国产成人久久综合野外| 亚洲偷偷自拍高清| 亚洲视频免费播放| 亚洲视频在线不卡| 亚洲精品免费在线视频| 久久精品国产亚洲av水果派| 久久青青成人亚洲精品| 久久夜色精品国产嚕嚕亚洲av| 国产亚洲婷婷香蕉久久精品| 国产亚洲人成无码网在线观看| 亚洲综合色自拍一区| 国产aⅴ无码专区亚洲av麻豆| 亚洲国产日韩在线观频| 亚洲无码黄色网址| 亚洲午夜久久久久妓女影院 | 亚洲黄色免费电影| 亚洲综合久久成人69| 亚洲视频一区在线| 亚洲一区二区影视| jiz zz在亚洲| 亚洲精品国产首次亮相| 亚洲AV无码一区二区三区电影| 亚洲高清国产拍精品熟女| 久久精品国产亚洲AV天海翼| 国产精品久久久久久亚洲小说| 亚洲AV之男人的天堂| 国产亚洲精品成人a v小说| 国产中文在线亚洲精品官网| 亚洲中文字幕久久精品无码APP | 97se亚洲国产综合自在线| 在线亚洲高清揄拍自拍一品区| 亚洲日本中文字幕天天更新| 香蕉视频亚洲一级| 国产精品亚洲综合专区片高清久久久| 久久久久亚洲AV成人网| 国产精品亚洲片在线| 久久久久亚洲精品天堂| 亚洲一级毛片视频|