已阅读5页,还剩4页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1. Given: Integeri=newInteger(42); Longl=newLong(42); Doubled=newDouble(42.0); WhichtwoexpressionsevaluatetoTrue? A.(i=1) B.(i=d) C.(d=1) D.(i.equals(l) E.(d.equals(l) F.(i.equals(42) G.noneofabove Answer: 2.Given: publicclassFoo publicstaticvoidmain(Stringargs) StringBuffera=newStringBuffer(A); StringBufferb=newStringBuffer(B); operate(a,b); System.out.println(a+,+b); staticvoidoperate(StringBufferx,StringBuffery) x.append(y); y=x; Whatistheresult? A.Thecodecompilesandprints“A,B”. B.Thecodecompilesandprints“A,A”. C.Thecodecompilesandprints“B,B”. D.Thecodecompilesandprints“AB,B”. E.Thecodecompilesandprints“AB,AB”. F.Thecodedoesnotcompilebecause“+”cannotbeoverloadedforStringBuffer. Answer: 3.Given: classBaseClass privatefloatx=1.0f; protectedfloatgetVar()returnx; classSubclassextendsBaseClass privatefloatx=2.0f; /inserthere Whichtwoarevalidexamplesofmethodoverriding? A.floatgetVar()returnx; B.publicfloatgetVar()returnx; C.publicdoublegetVar()returnx; D.protectedfloatgetVar()returnx; E.publicfloatgetVar(floatf)returnf; Answer: 4.WhichofthefollowingaremethodsoftheRunnableinterface A)run B)start C)yield D)stop Answer: 5.Whichofthefollowingarelegalstatements? A)floatf=1/3; B)inti=1/3; C)floatf=1.01; D)doubled=999d; Answer: 6.Given: publicclasstest( publicstaticvoidmain(stringargs) Stringfoo=args1; Stringbaz=args2; Stringbax=args3; Andthecommandlineinvocation: JavaTestredgreenblue Whatistheresult? A.bazhasthevalueof“” B.bazhasthevalueofnull C.bazhasthevalueof“red” D.bazhasthevalueof“blue” E.baxhasthevalueof“green” F.thecodedoesnotcompile G.theprogramthrowsanexception Answer: 7.Whichofthefollowingstatementsaretrue? A)ThegarbagecollectionalgorithminJavaisvendorimplemented B)Thesizeofprimitivesisplatformdependent C)Thedefaulttypeforanumericalliteralwithdecimalcomponentisafloat. D)YoucanmodifythevalueinanInstanceoftheIntegerclasswiththesetValuemethod Answer: 8.Given: inti=1,j=10; do if(i+-j)continue; while(iTOM-eTOM-NGOSS 3什么是数据库系统?列举几个常见数据库系统。 要点: 1)数据库系统是一个实际可运行的存储、维护和应用系统提供数据的软件系统,是存储介质、处理对象和管理系统的集合体。它通常由软件、数据库和数据管理员组成。其软件主要包括操作系统、各种宿主语言、实用程序以及数据库管理系统。数据库由数据库管理系统统一管理,数据的插入、修改和检索均要通过数据库管理系统进行。 2)开源数据库系统有:HSQLDB、MySQL、PostgreSQL等 3)商业数据库系统包括:Oracle10g、DB2、Sysbase、Informix、MSSQL等。 4请简单描述软件开发过程的主要阶段。 要点: 计划,分析,设计,编码,测试,维护等。 5请将下面一段文字翻译成中文。 Anenterpriseservicebus(ESB)isapatternofmiddlewarethatunifiesandconnectsservices,applicationsandresourceswithinabusiness.Putanotherway,itistheframeworkwithinwhichthecapabilitiesofabusinessapplicationsaremadeavailableforreusebyotherapplicationsthroughouttheorganizationandbeyond.TheESBisnotanewsoftwareproductitsanewwayoflookingathowtointegrateapplications,coordinateresourcesandmanipulateinformation.Unlikemanypreviousapproachesforconnectingdistributedapplications,forexampleRPCordistributedobjects,theESBpatternen
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 儿子签了谅解协议书
- 广东清远市清新区浸潭镇人民政府招聘政府专项工作聘员易考易错模拟试题(共500题)试卷后附参考答案
- 出让地块移交协议书
- 安徽省合肥市庐阳中学2025-2026学年八年级上学期期中语文试题(含答案及解析)
- 印染厂出租合同范本
- 宁夏2025下半年事业单位招聘拟聘(十一)易考易错模拟试题(共500题)试卷后附参考答案
- 校服代理协议书模板
- 桃园公寓买卖协议书
- 兼职电工劳务协议书
- 机床改造合同协议书
- 燃料电池-课件
- GB/T 41681-2022管道用Y型铸铁过滤器
- GB/T 31521-2015公共信息标志材料、构造和电气装置的一般要求
- GB/T 1185-2006光学零件表面疵病
- 高考体育单招英语复习连词讲解4教案
- 消费者行为分析之社会因素的影响分析课件
- 抑郁症护理查房课件
- 老年人的易发骨折的种类及处理课件
- CFG桩施工方案一期
- 清水混凝土模板施工方案
- 苏教版五年级数学上册全册教学反思汇总
评论
0/150
提交评论