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
主站蜘蛛池模板: 日本一级毛片不卡免费 | 免费一级毛片在播放视频 | 激情视频网 | 肉色欧美久久久久久久免费看 | 国产综合无码一区二区色蜜蜜 | 精品欧美аv高清免费视频 精品欧美成人bd高清在线观看 | 亚洲一区二区欧美 | 日本黄色三级视频 | 欧美成人h亚洲综合在线观看 | 久久综合九色综合欧洲色 | 亚洲欧美一区二区三区不卡 | 无遮挡边摸边吃奶边做视频免费 | 最近中文字幕完整版免费 | 久草热视频| 性欧美f| 成年人网站在线免费观看 | 日本三级和搜子同居的日子2 | 国内大量揄拍人妻在线视频 | 色娜娜精品视频在线播放 | 欧美成人看片一区二区三区 | 成人综合网站 | 女明星黄网站色视频免费国产 | 波多野结衣乳巨码无在线 | 亚洲一级黄色 | 久久久精品国产免费观看同学 | 精品无码一区二区三区爱欲九九 | 色视频在线免费观看 | 国产日韩欧美亚洲综合首页 | 成人麻豆日韩在无码视频 | 中文人妻无码一区二区三区 | 午夜美女福利视频 | 欧美成人形色生活片 | 日日碰夜夜操 | 黄色毛片视频 | 色娜娜精品视频在线播放 | yyyyzzzz欧美yyy | 中文字幕人妻无码一夲道 | 国产日韩一区二区三区在线观看 | 91香蕉视频在线播放 | 今野由爱毛片在线播放 | 色综合色综合色综合色综合 |