亚洲草草视频_成年人在线电影_www性色_久久久久久www_成人激情免费视频_夜夜摸夜夜操

所在位置:大風車考試網 > 招聘筆試題 > 正文

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

大風車考試網
  選擇題

  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 interPter.

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

  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”.

  • 相關文章
主站蜘蛛池模板: 午夜影院在线观看 | 国产噜噜噜噜噜久久久久久久久 | 免费在线黄色电影 | 欧洲精品| 九九亚洲视频 | 免费日韩精品 | 国产99精品 | 69中文字幕| 亚洲91 | 狠狠色噜噜狠狠狠8888米奇 | 国产色在线 | 欧美成人黄色 | 国产综合精品一区二区三区 | 色爱欧美| 国产乱来视频 | 日韩三级| 国产成人一区 | 日本不卡一区 | 免费午夜电影 | 亚洲精品一区中文字幕乱码 | 日韩中文字幕一区二区三区 | 亚洲视频一区二区三区 | 久久综合99 | 久久久久久久久一区二区三区 | 国产精品久久久久久99999 | 国产日韩一区 | 亚洲精品日韩精品 | 亚洲精品一区二区三区精华液 | 起碰在线视频 | 日韩欧美在线一区 | 国产中文视频 | 国产精品国产精品国产专区不卡 | 色天天综合久久久久综合片 | 国产精品视频免费观看 | 狠狠色噜噜 | 成人九九视频 | 亚洲精品视频在线 | 日韩精品在线观看一区 | 桃色视频在线播放 | 九九亚洲 | 久久午夜电影 |