<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)文章

    最新圖文

    久久久久噜噜噜亚洲熟女综合| 国产成人亚洲精品蜜芽影院| 久久乐国产精品亚洲综合| 亚洲高清国产拍精品熟女| 亚洲kkk4444在线观看| 77777午夜亚洲| 激情五月亚洲色图| 午夜在线a亚洲v天堂网2019| 亚洲一区无码中文字幕乱码| 亚洲人和日本人jizz| 亚洲av无码片区一区二区三区| tom影院亚洲国产一区二区| 亚洲精品第一国产综合野| 亚洲jjzzjjzz在线观看| 亚洲国产乱码最新视频| 456亚洲人成在线播放网站| 亚洲日韩一区二区一无码| 亚洲av无码一区二区三区四区| 含羞草国产亚洲精品岁国产精品| 亚洲.国产.欧美一区二区三区| 国产成人亚洲综合a∨| 国产乱辈通伦影片在线播放亚洲| 亚洲色婷婷六月亚洲婷婷6月| 亚洲成在人线av| 99久久亚洲综合精品成人网| 亚洲国产精品成人综合色在线婷婷| 亚洲av片不卡无码久久| 亚洲另类无码一区二区三区| 国产精品亚洲五月天高清| 亚洲一区二区精品视频| 国产亚洲成AV人片在线观黄桃| 午夜影视日本亚洲欧洲精品一区 | 亚洲av无码国产精品色午夜字幕| 亚洲成人在线电影| 亚洲高清中文字幕| 一本色道久久88—综合亚洲精品 | 亚洲熟妇成人精品一区| 蜜臀亚洲AV无码精品国产午夜.| 亚洲国产精品成人久久蜜臀 | 久久久久久亚洲精品不卡| 亚洲Av无码精品色午夜|