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

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

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

更新:2023-09-18 13:10:37 高考升學(xué)網(wǎng)

  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

相關(guān)文章

最新圖文

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

2020年開展兩學(xué)一做學(xué)習(xí)教

時(shí)間:2023-09-19 21:0:30
主站蜘蛛池模板: 福利国产在线 | 手机在线色视频 | 在线精品欧美日韩 | 在线免费观看a视频 | 色五五月五月开 | 欧美一级高清片免费一级 | 女老师9| 国产精品久久久久久久免费大片 | 亚洲精品不卡在线 | 欧美三级在线看 | 黄色免费网站在线播放 | 色综合久久久高清综合久久久 | 韩国欧洲一级毛片 | 日本www色视频成人免费 | 黄色视屏在线播放 | bt日韩| 日日操夜夜操狠狠操 | 欧美日本国产 | 欧美精品一区二区三区在线播放 | 成人一区二区免费中文字幕 | 欧美一区高清 | 这里只有精品在线播放 | 天堂新版资源中文最新版下载地址 | 免费在线色视频 | 色婷婷5月精品久久久久 | 日本免费网 | 国产精品资源在线播放 | 麻豆视频免费在线 | 亚洲香蕉综合在人在线时看 | 最近更新2019中文字幕 | 欧美区在线播放 | 老司机在线精品视频 | 国产精品国产精品国产专区不卡 | 亚洲欧美日韩在线精品一区二区 | 青青操网站 | 狠狠丁香激情久久综合 | 高颜值露脸极品在线播放 | 国产美女白嫩嫩在线观看 | 日韩毛片高清免费 | 日韩综合在线 | 亚洲最大网址 |