欧美在线观看www-欧美在线观看高清一二三区-欧美在线观看网站-欧美在线观看网址-国产高清在线精品免费-国产高清在线精品一区二区

當前位置:高考升學網 > 招聘筆試題 > 正文

新華信國際信息咨詢JAVA工程師筆試題和面試題答案(三)

更新:2023-09-18 13:10:37 高考升學網

  D.8

  8:

  String s=”Example String”;Which operation is not legal?

  String s=”Example String”;Which operation is not legal?

  A.int i=s.length();

  B.s[3]=”x”;

  C.String short_s=s.trim();

  D.String t=”root”+s;

  9:

  Give this class outline:

  class Example{

  private int x;

  //rest of class body…

  }

  Assuming that x invoked by the code java Example, which statement can made x be directly accessible in main() method of Example.java?

  Give this class outline:

  class Example{

  private int x;

  //rest of class body…

  }

  Assuming that x invoked by the code java Example, which statement can made x be directly accessible in main() method of Example.java?

  A.Change private int x to public int x

  B.change private int x to static int x

  C.Change private int x to protected int x

  D.change private int x to final int x

  10:

  What will happen when you attempt to compile and run the following code?

  class Base

  {

  int i = 99;

  public void amethod()

  {

  System.out.println("Base.amethod()");

  }

  Base()

  {

  amethod();

  }

  }

  public class Derived extends Base

  {

  int i = -1;

  public static void main(String argv[])

  {

  Base b = new Derived();

  System.out.println(b.i);

  b.amethod();

  }

  public void amethod()

  {

  System.out.println("Derived.amethod()");

  }

  }

  Choices:

  What will happen when you attempt to compile and run the following code?

  class Base

  {

  int i = 99;

  public void amethod()

  {

  System.out.println("Base.amethod()");

  }

  Base()

  {

  amethod();

  }

  }

  public class Derived extends Base

  {

  int i = -1;

  public static void main(String argv[])

  {

  Base b = new Derived();

  System.out.println(b.i);

  b.amethod();

  }

  public void amethod()

  {

  System.out.println("Derived.amethod()");

  }

  }

  Choices:

  A.Derived.amethod() -1 Derived.amethod()

  B.Derived.amethod() 99

  C.Compile time error

  D.Derived.amethod()

  11:

  What will be the result of executing the following code?

  // Filename; SuperclassX.java

  package packageX;

  public class SuperclassX

  {

  protected void superclassMethodX()

  {

  }

  int superclassVarX;

  }

  // Filename SubclassY.java

最新圖文

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
主站蜘蛛池模板: ww亚洲ww在线观看国产 | 美国绿色导航 | 9999视频| 同性老头old mantv | 大又大又粗又爽女人毛片 | 亚洲高清视频在线观看 | 在线免费一级片 | 在线观看免费视频网站色 | 天堂网2020 | 成人午夜免费视频 | 五月婷花 | 国产精品高清视亚洲一区二区 | 一区不卡在线观看 | 久久久噜噜噜www成人网 | 亚洲性一级理论片在线观看 | 国产综合91| 在线观看成年美女黄网色视频 | 日本黄大片视频在线播放 | 九色免费视频 | 免费二级c片在线观看a | aaa在线观看 | 插入影院| 新四虎影院 | 成人免费一级在线播放 | 国产色网| 69综合网 | 亚洲三级网址 | 久久久久久尹人网香蕉 | 精品动漫在线观看视频一区 | 九九热国产视频 | 手机看片日韩国产 | 99热在| 亚洲不卡免费视频 | 奶茶视频官网下载页 | 韩国一级片免费 | www.久久av.com| 亚洲国产最大av | 亚洲一区 欧美 | 99久久精品费精品国产一区二区 | 国产一级做a爰片在线看免费 | 高清欧美在线三级视频 |