91com在线观看_五级片网站_久99视频_快播91_91免费版看片_www.91视频com

当前位置:高考升学网 > 招聘笔试题 > 正文

新华信国际信息咨询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
主站蜘蛛池模板: 韩国一级毛片在线高清免费 | 国产黑色丝袜在线观看下 | 欧美曰批人成在线观看 | 国产免费av片无码永久免费 | 国产三级播放 | 亚洲精品一区久久久久一品av | 精品高潮呻吟99av无码视频 | 国产∨亚洲v天堂无码久久久 | 国产成人一区二区三区视频免费 | 亚洲精品天堂一区在线观看 | 亚洲一区二区三区影院 | 国产女人自拍 | 点击进入不卡毛片免费观看 | 超薄肉色丝袜一区二区 | 99精品免费视频 | 不卡一区二区在线 | 性网站在线| 福利影院在线观看 | 久久99精品久久久久婷婷 | 亚洲欧美日韩另类在线 | 国产一区二区三区在线视频 | 99热久久国产这里有只有精品 | 亚洲成人高清在线 | 在线观看欧美亚洲日本专区 | 国产成人久久久精品一区二区三区 | 久久综合九色婷婷97 | 成人毛片网站 | 一区二区三区在线免费视频 | 偷拍自拍视频在线观看 | 人人妻人人澡人人爽人人精品97 | 亚洲国产精品久久久久婷婷老年 | 亚洲久久网站 | 国产又爽又粗又猛的视频 | 女女互磨互喷水高潮les呻吟 | 亚洲精品久久激情影院 | 国产94在线传媒麻豆免费观看 | 久热色 | 亚洲一区二区影院 | www.香蕉网| 久久日本片精品aaaaa国产 | 久久免费精品视频在线观看 |