1024国产,91精品国产综合久久福利,中文字幕成人免费视频,日本人的色道免费网站,曰本一级毛片免费,www.日日爱,国产黑丝视频

當(dāng)前位置:高考升學(xué)網(wǎng) > 招聘筆試題 > 正文

Java工程師筆試題和面試題答案(二)

更新:2023-09-15 22:01:53 高考升學(xué)網(wǎng)

  A.計(jì)劃階段、開(kāi)發(fā)階段、運(yùn)行階段

  B.設(shè)計(jì)階段、開(kāi)發(fā)階段、編碼階段

  C.設(shè)計(jì)階段、編碼階段、維護(hù)階段

  D.計(jì)劃階段、編碼階段、測(cè)試階段

  9:

  What happens when you try to compile and run the following program?

  class Mystery{

  String s;

  public static void main(String[] args){

  Mystery m=new Mystery();

  m.go();

  }

  void Mystery(){

  s=”constructor”;

  }

  void go(){

  System.out.println(s);

  }

  }

  What happens when you try to compile and run the following program?

  class Mystery{

  String s;

  public static void main(String[] args){

  Mystery m=new Mystery();

  m.go();

  }

  void Mystery(){

  s=”constructor”;

  }

  void go(){

  System.out.println(s);

  }

  }

  A.this code compliles but throws an exception at runtime

  B.this code runs but nothing appears in the standard output

  C.this code runs and “constructor” in the standard output

  D.this code runs and writes ”null” in the standard output

  10:

  Give the following java class:

  public class Example{

  public static void main(String args[]){

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

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

  }

  }

  Which statement is corrected?

  Give the following java class:

  public class Example{

  public static void main(String args[]){

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

  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.

  11:

  public class X{

  public Object m(){

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

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

  oa[0] = o;//line 5

  o=null;//line 6

  return oa[0];//line 7

  }

  }

最新圖文

2020年河北新聞網(wǎng)兩學(xué)一做

時(shí)間:2023-09-18 07:0:24

2020年河北新聞網(wǎng)兩學(xué)一做

時(shí)間:2023-09-15 11:0:59

兩學(xué)一做學(xué)習(xí)教育知

時(shí)間:2023-09-21 06:0:30