日韩精品一区二_av在线色_中文二区_日本成人三级_a免费在线观看_国产精品久久久久久久久久久久久久久

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

最新圖文

2020年河北新聞網(wǎng)兩學(xué)一做

時(shí)間:2023-09-18 07:0:24

2020年河北新聞網(wǎng)兩學(xué)一做

時(shí)間:2023-09-15 11:0:59

兩學(xué)一做學(xué)習(xí)教育知

時(shí)間:2023-09-21 06:0:30

2020年開展兩學(xué)一做學(xué)習(xí)教

時(shí)間:2023-09-19 21:0:30
主站蜘蛛池模板: 成人一区二区三区在线观看 | 一区二区三区四区免费观看 | 欧美一区2区三区4区公司二百 | 91免费在线视频 | 91久久夜色精品国产九色 | 久久久久无码国产精品一区 | 国产精品一区二区三区在线播放 | 国偷自产av一区二区三区 | 国产精品毛片久久久久久 | 中文字幕在线观看 | 亚洲精品一二三区 | 欧美日韩在线观看视频 | 久久久成 | 日韩av一区二区三区在线观看 | 91成人在线免费视频 | 欧美激情一区二区 | 日韩精品一区二区三区在线 | 在线观看免费av网站 | 亚洲精品在线免费播放 | 亚洲精品一区二区三区99 | 日本黄色大片 | 精品久久久久久久久久久久久久久久久久久 | 综合久久99| 久久久久国产精品一区二区 | 欧美一区精品 | 99热在线看 | 成人h漫在线观看 | 91精品国产综合久久精品 | 国产一级片在线 | 久久99精品视频 | 97天堂 | 亚洲精品视频在线看 | 国产中文字幕一区 | 黄色毛片免费看 | 国产高清一级毛片在线不卡 | 精品视频一区二区三区四区 | 欧美综合一区二区 | 精品欧美黑人一区二区三区 | 97碰碰碰| 亚洲一区二区三区视频免费观看 | 夜夜爽网址 |