<dfn id="w48us"></dfn><ul id="w48us"></ul>
  • <ul id="w48us"></ul>
  • <del id="w48us"></del>
    <ul id="w48us"></ul>
  • 思遷數碼科技招聘Java軟件工程師筆試真題

    時間:2020-12-14 10:03:34 筆試題目 我要投稿

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

      選擇題

    思遷數碼科技招聘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 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”.

      C.the code will not compile.

      D.None of these.

      7:

      What is the result when you compile and run the following code?

      public class ThrowsDemo

      {

      static void throwMethod()

      {

      System.out.println("Inside throwMethod.");

      throw new IllegalAccessException("demo");

      }

      public static void main(String args[])

      {

      try

      {

      throwMethod();

      }

      catch (IllegalAccessException e)

      {

      System.out.println("Caught " + e);

      }

      }

      }

      Choices:

      What is the result when you compile and run the following code?

      public class ThrowsDemo

      {

      static void throwMethod()

      {

      System.out.println("Inside throwMethod.");

      throw new IllegalAccessException("demo");

      }

      public static void main(String args[])

      {

      try

      {

      throwMethod();

      }

      catch (IllegalAccessException e)

      {

      System.out.println("Caught " + e);

      }

      }

      }

      Choices:

      A.Compilation error

      B.Runtime error

      C.Compile successfully, nothing is printed.

      D.Inside throwMethod. followed by caught:java.lang.IllegalAccessExcption: demo

      8:假定a和b為int型變量,則執行下述語句組后,b的值為

      a=1;

      b=10;

      do

      {

      b-=a;

      a++;

      } while (b--<0);

      A.9

      B.-2

      C.-1

      D.8

      9:

      public class X{

      public Object m(){

      Object o = new Float(3.14F);//line 3

      Object [] oa = new Object[1];//line 4

      oa[0] = o;//line 5

      o=null;//line 6

      return oa[0];//line 7

      }

      }

      When is the Float object, created in line 3,eligible for garbage collection?

      public class X{

      public Object m(){

      Object o = new Float(3.14F);//line 3

      Object [] oa = new Object[1];//line 4

      oa[0] = o;//line 5

      o=null;//line 6

      return oa[0];//line 7

      }

      }

      When is the Float object, created in line 3,eligible for garbage collection?

      A.just after line 5.

      B.just after line 6

      C.just after line 7(that is,as the method returns)

      D.never in this method

      10:Math.round(-11.5)等於多少?

      A.-11

      B.-12

      C.-11.5

      D.none

      11:In the following pieces of code, which one will compile without any error?

      A.StringBuffer sb1 = "abcd";

      B.Boolean b = new Boolean("abcd");

      C.C: byte b = 255;

      D.float fl = 1.2;

      12:

      Give the following method:

      public void method( ){

      String a,b;

      a=new String(“hello world”);

      b=new String(“game over”);

      System.out.println(a+b+”ok”);

      a=null;

      a=b;

      System.out.println(a);

      }

      In the absence of compiler optimization, which is the earliest point the object a refered is definitely elibile to be garbage collection.

      Give the following method:

      public void method( ){

      String a,b;

      a=new String(“hello world”);

      b=new String(“game over”);

      System.out.println(a+b+”ok”);

      a=null;

      a=b;

      System.out.println(a);

      }

      In the absence of compiler optimization, which is the earliest point the object a refered is definitely elibile to be garbage collection.

      A.before line 5

      B.before line 6

      C.before line 7

      D.before line 9

      13:

      Give the following java class:

      public class Example{

      static int x[]=new int[15];

      public static void main(String args[]){

      System.out.println(x[5]);

      }

      }

      Which statement is corrected?

      Give the following java class:

      public class Example{

      static int x[]=new int[15];

      public static void main(String args[]){

      System.out.println(x[5]);

      }

      }

      Which statement is corrected?

      A.When compile, some error will occur.

      B.When run, some error will occur.

      C.Output is zero.

      D.Output is null.

      14:以下的C程序代碼片段運行后C和d的值分別是多少

      Int a =1,b =2;

      Int c,d;

      c =(a&b)&&a;

      d =(a&&b)&a;

      A.0,0

      B.0,1

      C.1,0

      D.1,1

      簡答題

      15:15個教徒和15 個非教徒在深海上遇險,必須將一半的人投入海中,其余的人才能幸免于難,于是想了一個辦法:30個人圍成一圓圈,從第一個人開始依次報數,每數到第九個人就將他扔入大海,如此循環進行直到僅余15個人為止。問怎樣排法,才能使每次投入大海的都是非教徒。

      16:構造器Constructor是否可被override?

      17:簡單介紹一下IOC的實現原理。(寫出代碼最好)

      18:說出數據連接池的.工作機制是什么?

      19:列出一些控制流程的方法;

      20:找出兩個字符串中最大子字符串,如"abractyeyt","dgdsaeactyey"的最大子串為"actyet"

      21:請寫一個java程序實現數據庫緩沖池的功能?

      22:Tomcat里實現會話session復制,有那些方法?

      23:簡單介紹JSP的標記庫?

      24:hibernate的2級緩存有那些緩存策略?每種緩存策略的使用范圍?

      25:不用乘法或加法給一個數增加7倍。

    【思遷數碼科技招聘Java軟件工程師筆試真題】相關文章:

    用友JAVA筆試真題07-24

    沃爾瑪招聘筆試真題分享12-26

    雀巢校園招聘往屆筆試真題11-21

    軟件開發工程師JAVA筆試題10-15

    平安銀行校園招聘筆試真題結構04-03

    最新中興Java語言筆試真題及答案09-24

    Java招聘筆試題目03-03

    Java軟件開發工程師筆試題寶典10-15

    JAVA類軟件研發工程師筆試題目03-04

    華為招聘程序員筆試真題分享07-15

    主站蜘蛛池模板: 国产精品二区观看| 无码精品人妻一区二区三区免费| 久久99国产精品成人欧美| 精品无码无人网站免费视频| 国产精品内射婷婷一级二| 精品无码一区二区三区爱欲九九 | 蜜臀AV无码国产精品色午夜麻豆 | 99热成人精品热久久669| 亚洲性日韩精品国产一区二区| 国产精品视频免费一区二区| HEYZO无码综合国产精品| 中文字幕九七精品乱码| 久久99精品国产麻豆婷婷| 2020最新久久久视精品爱| 国产精品人人爽人人做我的可爱 | 精品国产综合成人亚洲区| 欧美精品v国产精品v日韩精品| 欧美日韩在线精品一区二区三区激情综合| 久久国产精品久久久| 久久精品无码专区免费东京热| 一本一本久久a久久精品综合麻豆| 精品久久久久久无码中文野结衣| 亚洲欧美日韩精品永久在线| 国产精品久久国产精品99盘 | 国产成人久久精品区一区二区| 日韩精品无码一区二区三区免费| 亚洲国产成人精品久久久国产成人一区二区三区综 | 国产精品无码素人福利| 2021国产精品视频网站| 久久精品国产69国产精品亚洲 | 亚洲国产精品综合久久网络| 国产精品美女久久久久| 久久精品无码一区二区无码| 少妇人妻精品一区二区三区| 亚洲国产精品国自产拍AV| 中文字幕精品一区| 日韩精品无码久久久久久| 日产精品99久久久久久| 久久99国产综合精品女同| 精品亚洲aⅴ在线观看| 国产精品无码A∨精品影院 |