国产成人做受免费视频-国产成在线观看免费视频-国产传媒在线播放-国产传媒在线观看-欧美一区二区三区不卡免费观看-欧美一区二区三区不卡片

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

2024-05-28 01:56:15 大風(fēng)車考試網(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 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”.

  • 相關(guān)文章
主站蜘蛛池模板: 欧美1区| a级亚洲片精品久久久久久久 | 一级片免费观看视频 | 隔壁老王国产精品福利 | 99re这里都是精品 | 动漫精品一区二区3d | 天天干天天操天天舔 | 久久天堂网 | 兔女郎穿着丝袜被啪啪 | 四虎影在永久地址在线观看 | 性欧美大战久久久久久久久 | 91在线网站 | 老司机精品99在线播放 | 久久精品国产清高在天天线 | 污污视频网站免费在线观看 | 国产高清在线观看视频 | 国产91专区 | 中文字幕成人在线 | 99网站在线观看 | 天堂在线最新版www中文 | 亚洲欧美在线不卡 | 欧美日本一道免费一区三区 | 国产91精品在线 | 久久青青草原精品影院 | 亚色国产| 欧美亚洲综合另类成人 | 日韩小片 | 久9久9精品视频在线观看 | 精品videoss另类日本 | 在线综合视频 | 成人动漫在线观看网站 | 一区在线看 | 99国产精品九九视频免费看 | 日韩欧美高清在线观看 | 国产精品v欧美精品∨日韩 国产精品va在线观看一 | 国产成人精品久久 | 亚洲国产日韩欧美在线a乱码 | 在线观看免费午夜大片 | 一区二区三区四区在线 | 欧美精品在线免费 | 婷婷丁香在线视频 |