欧美在线观看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
主站蜘蛛池模板: 久久综合精品不卡一区二区 | 天天操天天操天天 | 杰罗德游戏在线观看完整版免费 | 国产精品久久久久久 | 久久久久久久91精品免费观看 | 国产对白视频 | 日本韩国高清 | 在线观看91精品国产hd | 国产午夜精品久久久久免费视小说 | 在线视频一区二区三区四区 | 99久久精品毛片免费播放 | 一级做a爰片久久毛片人呢 一级做a爰片久久毛片免费看 | 亚洲天堂影院在线观看 | 青青青在线视频播放 | h国产| 午夜拍拍福利视频蜜桃视频 | 日韩经典在线观看 | 国产成人污污网站在线观看 | 欧美日韩视频在线成人 | 最新日本免费一区二区三区中文 | 毛片一级在线观看 | 国产精品亚洲国产 | 毛片在线免费观看网站 | 欧美在线中文 | 99久久网站| 四虎国产精品永久一区 | 羞羞视频免费观看入口 | 国产视频a | 亚洲欧美日本欧美在线播放污 | 国产一区在线观看免费 | 日韩欧美国产偷亚洲清高 | 手机看日韩毛片福利盒子 | jjzz在线观看 | 亚洲欧美日韩一区超高清 | 国产精品入口牛牛影视 | 黑人巨大15p | 日本精品视频四虎在线观看 | 性感五月天 | 日本一区二区三区视频在线观看 | 日韩有码第一页 | 免费精品视频 |