高考升学网_国产刚发育娇小性色xxxxx_一个为高考升学提供有价值信息的网站

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

Java工程師筆試題和面試題答案

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

  選擇題

  1:Which modifier should be applied to a method for the lock of object this to be obtained prior to excution any of the method body?

  A.synchronized

  B.abstract

  C.final

  D.static

  2:

  Give the following java source fragement:

  //point x

  public class Interesting{

  //do something

  }

  Which statement is correctly Java syntax at point x?

  Give the following java source fragement:

  //point x

  public class Interesting{

  //do something

  }

  Which statement is correctly Java syntax at point x?

  A.public class MyClass{//do other thing…}

  B.static int PI=3.14

  C.class MyClass{//do something…}

  D.none

  3:

  What is the result when you compile and run the following code?

  public class Test

  {

  public void method()

  {

  for(int i = 0; i < 3; i++)

  {

  System.out.print(i);

  }

  System.out.print(i);

  }

  }

  Choices:

  What is the result when you compile and run the following code?

  public class Test

  {

  public void method()

  {

  for(int i = 0; i < 3; i++)

  {

  System.out.print(i);

  }

  System.out.print(i);

  }

  }

  Choices:

  A.0122

  B.0123

  C.Compilation error

  D.None of these

  4: Which of the following statements are true?

  A.The automatic garbage collection of the JVM prevents programs from ever running out of memory

  B.A program can suggest that garbage collection be performed and force it

  C.Garbage collection is platform independent

  D.An object becomes eligible for garbage collection when all references denoting it are set to null.

  5:

  Give the following method:

  public void method( ){

  String a,b;

  a=new String(“hello world”);

  b=new String(“game over”);

  System.out.println(a+b+”ok”);

  a=null;

  a=b;

  System.out.println(a);

  }

  In the absence of compiler optimization, which is the earliest point the object a refered is definitely elibile to be garbage collection.

  Give the following method:

  public void method( ){

  String a,b;

  a=new String(“hello world”);

  b=new String(“game over”);

  System.out.println(a+b+”ok”);

  a=null;

  a=b;

  System.out.println(a);

  }

  In the absence of compiler optimization, which is the earliest point the object a refered is definitely elibile to be garbage collection.

  A.before line 5

  B.before line 6

  C.before line 7

  D.before line 9

  6:

  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

  7:

  Given the following class definition:

  class A{

  protected int i;

  A(int i){

  this.i=i;

  }

  }

  which of the following would be a valid inner class for this class?

  Select valid answer:

  Given the following class definition:

  class A{

  protected int i;

  A(int i){

  this.i=i;

  }

  }

  which of the following would be a valid inner class for this class?

  Select valid answer:

  A.class B{ }

  B.class B extends A{ }

  C.class B extends A{ B(){System.out.println(“i=”+i);} }

  D.class B{ class A{} }

  8:軟件生命周期的瀑布模型把軟件項目分為3個階段、8個子階段,以下哪一個是正常的開發(fā)順序?

相關(guān)文章

最新圖文

主站蜘蛛池模板: 圣瞳智巡_大模型工业巡检解决方案|【圣瞳科技】 | 小程序开发,网站建设,APP开发,商城系统开发,社区团购系统开发,区块链溯源,互联网资质办理-软多信息技术有限公司_河南软多信息技术有限公司 | 营口新北方制糖有限公司| 气体检测仪_气体传感器_可燃气体检测仪-精讯畅通电子科技 | 绿树海棠苗木网-苗木基地-苗木求购-苗木价格-苗圃苗木专业平台 | 沈阳机电一体化电热锅炉_沈阳蓄热式电锅炉_沈阳壁挂式电锅炉【沈阳远鹏电热供水设备工程安装有限公司】 | 无锡艾迅自动化科技ASCO电磁阀-dwyer/topworx代理-上泰仪表代理商 | 太原石膏基自流平,太原轻质抹灰石膏,太原腻子粉,太原抗裂砂浆-太原乔贝建筑材料有限公司 | 洗车机-自动汽车洗车机-全自动洗车设备-全自动电脑洗车机-北京自然绿环境科技发展有限公司 | 万彩办公大师官网-免费的办公工具百宝箱OfficeBox,绿色无广告无捆绑 | 中科联航(江苏)-信息化监理|信息化咨询|信息系统项目管理|信息系统工程监理公司 | 宜宾三江人才网_三江人才网_宜宾三江人才网_三江人才直聘网是本地颇具规模的网上人才市场 | 洗地机,洗地机价格,扫地机,工业吸尘器,手推式洗地机,驾驶式洗地机,北京洗地机【北京高美环保科技有限公司】 | 守护者官网-儿童安全卫士 | 首页-南德电气集团-电能质量产品解决方案|能源数字化系统解决方案|新能源检测评估服务|电力/光伏/储能EPC工程总承包 | 宁波公司注册_宁波注册公司_宁波代理记账_宁波做内账|安隆会计专业服务机构 | 昆山精鑫模具有限公司-模具研发生产 | 一站式服务体验 | 制冷设备|冷库|空调|配件【制冷通】国内领先的制冷服务平台 | 监控工程,安防监控公司,北京监控安装,北京安装监控,安装摄像头,北京监控维保,监控施工,北京监控维修,监控弱电工程,监控器安装,监控维护保养,监控工程设计,北京监控设备维修,监控报警安装,北京北方合力科技有限公司 | 首页|广东蒙泰高新纤维股份有限公司|丙纶细旦丝|丙纶异形丝|丙纶FDY网络丝 - 广东蒙泰高新纤维股份有限公司 | 面粉加工成套设备|面粉加工设备|面粉加工机械|面粉机组设备-河南成立粮油机械有限公司 | 黑料网 - 黑料大事记-黑料门 黑料社最新 今日黑料 热门黑料 最新反差免费-黑料网今日黑料首页_黑料网 - 黑料大事记-黑料门 黑料社最新 今日黑料 热门黑料 最新反差免费-黑料网今日黑料首页 | 沥青灌缝胶-路面贴缝带-灌缝胶厂家-山东晟辉工程材料有限公司 | 行李快递安检机-便携式X光安检仪-行李安检机-液体-爆炸物探测仪-安天下安检设备 | 深圳蓝枫印刷_画册印刷_彩页印刷_宣传册印刷_包装盒印刷_彩盒印刷厂_不干胶印刷厂 | 专业护工_医院护工_护工陪护_住家护工- 心陪护 | 养殖污水处理设备厂家-废水处理设备-固液分离设备-诸城市赛瑞环保 | 展馆展厅设计_数字多媒体展厅_3D全息投影_三维动画制作_企业宣传片|深圳市华南数字科技有限公司 斩天手游网_高质量手机游戏下载中心 | 气体检测仪_气体传感器_可燃气体检测仪-精讯畅通电子科技 | 沈阳机电一体化电热锅炉_沈阳蓄热式电锅炉_沈阳壁挂式电锅炉【沈阳远鹏电热供水设备工程安装有限公司】 | 自装卸(挂桶)车|钩臂垃圾车|压缩垃圾车|密封自卸车|环卫垃圾车|餐厨车泔水车湖北程力专用车厂家 自建房外墙砖|地砖|墙砖,农村|别墅瓷砖-佛山燊陶丰 | 中婴网,推动母婴产业健康·可持续发展,婴童网络专业传媒,母婴网,360孕婴童网,婴童品牌,婴儿用品品牌,婴儿用品加盟店,母婴用品加盟店 | 河南车用尿素设备_郑州车用尿素设备_河南江宇环保车用尿素液厂家 | 输送机_山东输送机厂家-山东中输输送机械有限公司 | 汽车智能防撞系统_智能刹车_77G毫米波雷达_麒云科技疲劳驾驶预警 | 诸城市佳品食品机械有限公司| 上海中泉泵业制造有限公司-柴油机泵,一体化泵站,柴油机消防泵,泵站,预制一体化泵站 | 真石漆设备-干粉砂浆生产线-保温砂浆机械-郑州屹成机械设备 | 宿州电机维修厂家,大型电机维修及二手电机修理到安徽鑫瑞特电机装备有限公司 | 汽车标签|医疗标签|电子标签|手机电池标签|电脑电池标签|电源标签|耐高温标签|防静电标签|手机出厂膜|手机全裹膜|手机包裹膜|手机卖点膜|热转印标签|遮阳板标签|天势科技|-标签印制专家! | 楼宇门厂家-氟碳漆门-不锈钢大门-单元门-锌合金大门-永康市龙卫门业 |