www.黄色片视频_久久99精品久久久久久噜噜_夜夜精品视频一区二区_99久33精品字幕_国产精品99久久免费观看_亚洲欧洲免费

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

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

2024-05-28 01:56:15 大風車考試網
  選擇題

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

  • 相關文章
主站蜘蛛池模板: 欧美日韩国产综合视频 | 国产野精品久久久久久久不卡 | 不卡视频一区 | 久久小草 | 国产区精品 | 午夜影院久久 | 国内精品久久精品 | 不卡日韩在线 | 色婷婷av久久久久久久 | 久久av一区二区三区 | 精品精品 | 999视频在线| 中文字幕在线观看 | av一区在线 | 9999久久久久 | 日韩免费| 日本在线观看视频一区 | 成人午夜精品一区二区三区 | 国产成人久久精品一区二区三区 | 国产精品久久久久一区二区三区 | 久在线观看 | 99在线精品视频 | 中文字幕av一区二区 | 日本三级网站在线观看 | 日本久久久久久久久久久久 | 欧美综合一区二区 | 亚洲免费视频在线观看 | 国产91av视频在线观看 | 成人免费毛片高清视频 | 成人在线黄色 | 91最新| 国产片在线观看 | 一区久久 | 成人婷婷 | 中文字幕精品一区 | 一级欧美一级日韩 | 亚洲欧洲日本国产 | 九九综合九九 | 天堂精品 | 日韩综合视频在线观看 | 老汉色影院 |