91com在线观看_五级片网站_久99视频_快播91_91免费版看片_www.91视频com

当前位置:高考升学网 > 招聘笔试题 > 正文

思迁数码科技Java软件工程师笔试真题

更新:2023-09-20 09:20:35 高考升学网
  选择题

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

相关文章

最新图文

2020年河北新闻网两学一做

时间:2023-09-18 07:0:24

2020年河北新闻网两学一做

时间:2023-09-15 11:0:59

两学一做学习教育知

时间:2023-09-21 06:0:30

2020年开展两学一做学习教

时间:2023-09-19 21:0:30
主站蜘蛛池模板: 久久精品私人影院免费看 | 丝袜免费视频xx在线观看 | 亚洲综合熟女久久久40p | 久久99国产精品二区 | 国模精品一区二区三区 | 少妇被猛男粗大的猛进出 | 国产三级在线视频播放线 | 午夜视频网站 | 欧美xxx午夜免费视频 | 欧美一级毛片免费看高清 | 中文字幕在线久热精品 | 无码精品a∨在线观看中文 无码精品不卡一区二区三区 | 国产欧美日韩一区 | 久久露脸国产精品 | 成人在线精品视频 | 国产亚洲精品久久久久久久网站 | 久久久久中文 | 国产精成人品日日拍夜夜免费 | 久久精品亚洲中文字幕无码网站 | 国产色婷婷亚洲 | 天堂av男人在线播放 | 亚洲va中文字幕无码 | 欧美午夜片欧美片在线观看 | 外围在线| 99久久夜色精品国产网站 | 在线视频亚洲色图 | 亚洲经典千人经典日产 | 成人在线免费播放 | 国产性大片黄在线观看在线放 | 中文字幕丰满伦子无码 | 国产精品久久一区二区三区 | 久久精品国产99久久 | 乱码午夜-极国产极内射 | 久久久高清 | 亚洲乱色熟女一区二区三区麻豆 | 久久国产综合精品swag蓝导航 | 国产精品成人免费视频网站京东 | 亚洲精品tv久久久久 | 亚洲最大av资源网在线观看 | 欧洲熟妇色xxxx欧美老妇免费 | 国产高清av在线播放 |