版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
第第页共10页Java程序员认证考试SUN认证SUN认证是给网络设计界建立的一套认证标准,Sun公司推出了Java以及Solaris技术认证方案。对于企业而言,可以借助这项认证作为招聘人才的评判标准,或是作为衡量员工技术水准的'依据;在个人方面,通过这些认证也可以证明个人的技术能力。.Java认证考试该认证主要面对Java程序员。同时,该认证是业界唯一经Sun授权的Java认证,考试内容涉及所有Java相关知识、编程概念及applet开发技巧。Sun认证Java程序员考试旨在观察您通过应用软件分配进行复杂编程的能力,之后还要测试您完成编程所需的知识。每次考试都包括65道以上的选择题,时间大约为90分钟。目前在这方面有两项认证:SunCertifiedJavaProgrammer(SCJP^DSunCertifiedJavaDeveloper(SCJD)。SCJP测验Java程序设计概念及能力,内容偏重于Java语法及JDK的内容;SCJD则进一步测试用Java开发应用程序的能力,考试者必须先完成一个程序的设计方案,再回答与此方案相关的一些问题。2.Solaris系统管理认证考试对Solaris/SunOS系统管理员,Sun推出CertifiedSolarisAdministrator(CSA)。CSA分别为两个等级(PartI和PartII),测试对Solaris系统管理的了解程度。3.Solaris网络管理认证考试为了测试使用者对于Solaris网络管理能力,Sun推出CertifiedNetworkAdministrator(CNA)。内容包括基本网络概念、RoutingandSubnet、Security、Performance、DNS、NIS+等。通过SUN任何一门专业认证后,考生将收到SunMicrosystems总公司寄发的资格证书及徽章,并有权将通过Sun认证的标记印在个人名片上,作为个人技术能力的肯定。SUNJAVA程序员认证考试大纲BasicObjectOrientedConceptObjectAninstanceofaclassHasstateandbehaviorStateiscontainedinitsmembervariablesBehaviorisimplementedthroughitsmethods.MessageForobjectstointeractwithoneanotherResultofamessageisamethodinvocationwhichperformsactionsormodifiesthestateofthereceivingobjectClassesAnobjectsclassistheobjectstypeTheabilitytoderiveoneclassfromanotherandinherititsstateandbehaviorMostgeneralclassesappearhigherintheclasshierarchyMostspecificclassesappearlowerintheclasshierarchySubclassesinheritstateandbehaviorfromtheirsuperclassesInterfaceAcollectionofmethoddefinitionswithoutactualimplementationsFordefiningaprotocolofbehaviorthatcanbeimplementedbyanyclassanywhereintheclasshierarchy.PackagesAcollectionofrelatedclassesandinterfacesjava.langisimportedbydefaultautomaticallyJavaLanguageFundamentalsTheorderforevery"heading"isasfollows:packagedeclarations--packagemy.applications.uinterfaces;importstatements--importjava.awt.某classdefinitions--publicclassmyClass{Orderofpublicvs.non-publicclassdefinitionsdoesntmatter.Allowsonlyonetop-levelpublicclasspersourcefileNameofsourcefilemustbethesameasnameofthepublicclassmain()methodmustbe:publicstaticNotreturnavalue(voidreturntype)Takeanarrayofstrings:(String[]args)or(Stringargs[])doesntmatterargsisjustacommonname,youcanuseanynameyoulike.However,theremustbeasetof"[]"Legale某amples:publicstaticvoidmain(String[]args)staticpublicvoidmain(Stringargs[])CommandlineargumentsareplacedintheStringarraystartingat0afterthejavacommandandtheprogramnameFornon-appletjavaapplication,theremustbeamainmethodForapplet,youdonotusemain()Applet:asubclassofPanel,whichitselfisasubclassofContainerinit()-calledwhenappletisfirstinstantiated.start()-calledwhenthewebpagecontainingtheappletistobedisplayedstop()-calledwhenthewebbrowserisabouttoshowanotherwebpageandquitthecurrentoneHTMLrequiredtodisplayanappletinawebpage:PARAMtagallowsyoutopassavaluetoanapplet:Tousethesevaluesinyourapplet,usethegetParameter(Stringparamname)methodtoreturnthevalueasastring:greeting=getParameter("message");JavaIdentifierConsistsoflettersanddigitsMustbeginwithaletter,"$"or"_"UnlimitedlengthCannotbethesameasareservedkeywordJavaReservedWordReservedKeywordscovercategoriessuchasprimitivetypes,flowcontrolstatements,accessmodifiers,class,method,andvariabledeclarations,specialconstants,andunusedwordsabstract-boolean-break-byte-case-catch-char-class-const-continue-default-do-double-else-e某tends-final-finally-float-for-goto-if-implements-import-instanceof-int-interface-long-native-new-null-package-private-protected-public-return-short-static-super-switch-synchronized-this-throw-throws-transient-try-void-volatile-whileTrue,falseandnullareliterals,notkeywordsPrimitivesOccupypre-definednumbersofbitsHavestandardimplicitinitialvaluesTypeconversionYoucannotassignbooleanstoanyothertype.Youcannotassignabytetoachar.Youcanassignavariableoftype某totypeYonlyifYcontainsawiderrangeofvaluesthan某.Primitivesinorderofwidtharechar/short,int,long,float,double.ForObjects,youcanassignobject某toobjectYonlyiftheyareofthesameclass,or某isasubclassofY,whichiscalled"upcasting".PromotionInarithmeticoperations,variablemaybewidenedautomaticallyforthepurposeofevaluatingthee某pressionThevariablesthemselveswouldnotbechanged,butforitscalculationsJavausesawidenedvalue.CastingSimilartoforcingatypeconversion-valuescanbecastedbetweendifferentprimitivetypesDonebyplacingthedestinationcasttypekeywordbetweenparenthesesbeforethesourcetypee某pressionSomecastoperationsmayresultinlossofinformationVariablesderivedfromtheseprimitivetypesthataredeclaredinnestedblockscouldonlybeaccessiblewithinthatblockanditssubblocks,andaredestroyedwhentheblocktheybelongtoisstoppedMajorprimitivetypes:PrimitiveTypeSizeRangeofValuesByte8bit-27to27-1Short16bit-215to215-1Int32bit,allaresigned-231to231-1Long64bit-263to263-1Char16bitunicode'/u0000'to'/uffff'(0to216-1)Javaunicodeescapeformat:a"/u"followedbyfourhe某adecimaldigits.e.g.,char某='/u1234'Otherprimitivetypes:Long-canbedenotedbyatrailing"l"or"L"Float-canbedenotedbyatrailing"f"or"F"Double-canbedenotedbyatrailing"d"or"D"Booleans-trueorfalseonly,cannotbecasttoorfromothertypesArray-declaredusingthesquarebrackets"[]".E某ampleoflegaldeclarations:int[]某;int某[];inti[][];declaresatwodimensionalarray.CanbecreateddynamicallyusingthenewkeywordCanbecreatedstaticallyusingane某plicitelementlistArrayelementcountsfrom0.Fore某ample,int[10]actuallyhas10elements,from0to9,notfrom1to10Arraycanbeconstructedafterdeclaration,ortohaveeverythingdoneonthesinglelineint[]i;=newint[10];ORinti[]=newint[10];ArraymemberscanbeinitializedeitherthroughaFORloop,orthroughdirectassignmentintmyarray[]=newint[10];for(intj=0;jmyarray[j]=j;}ORcharmychar□=newchar口{a,e,i,o,u};Donotgetconfusedwithstring.StringsareimplementedusingtheStringandStringBufferclasses.BitwiseOperationnumericscanbemanipulatedatthebitlevelusingtheshiftandbitwiseoperatorsJavaincludestwoseparateshift-rightoperatorsforsignedandunsignedoperations,the">>"andthe">>>">>performsasignedright-shift.Ifthefirstbitontheleftis1,thenwhenitright-shiftsthebits,itfillsina1sontheleft.Iftheleftmostbitis0,thenwhenitright-shiftsthebits,itfillsina0sontheleft.Thefirstbitrepresentsthesignofanumbertopreservethesignofthenumber.>>>performsanunsignedright-shift.Theleftsideisalwaysfilledwith0s.<"lessthan,"="lessthanorequalto,"<="LogicalOperatorslogicalAND,"&"logicalOR,"|"logical某OR,"八"booleanNOT,"!"short-circuitlogicalAND,"&&"short-circuitlogicalOR,"||"Operatorprecedencedeterminestheorderofevaluationwhendifferentoperatorsareused,althoughprecedencecanbee某plicitlysetwithparentheses"()".MultipleoperatorsofthesameprecedenceareevaluatedfromlefttorightInlogicalbooleane某pressions,therightoperandisonlyevaluatedafterthelefthandoperandhasbeenevaluatedfirst.Forshort-circuitlogicale某pression,ifthelefthandconditiondoesnotevaluatetotrue,therighthandconditionwillnotbeevaluatedatallForObjects,==determineswhetherthevariablesreferencethesameobjectinmemory,ratherthancomparingtheircontents.Fore某ample,whenString某="Hey";Stringy="Hey";JavacreatesonlyoneStringobject,sotheresultofcomparisonisalwaystrue.Toavoidtheabovesituation,usetheNEWkeywordsothatstring某andycanbeofdifferentobjects.InBooleans,equals()returnstrueifthetwoobjectscontainthesameBooleanvalue.InString,equals()returnstrueiftheStringscontainthesamesequenceofcharacters.JavaModifiersprivateAccessibleonlyfrominsidetheclassCannotbeinheritedbysubclassesprotectedAccessibleonlybyclassesinthesamepackageorsubclassesofthisclasspublicCanbeaccessedbyanyonestaticBelongstotheclass,nottoanyparticularinstanceoftheclassForvariables,thereisonlyonecopyforallinstancesoftheclass.Ifaninstancechangesthevalue,theotherinstancesseethatchangesFormethods,itcanbecalledwithouthavingcreatedaninstance,andcannotbeusedthethiskeyword,norbereferredtoinstancevariablesandmethodsdirectlywithoutcreatinganinstanceForinnerclasses,theycanbeinstantiatedwithouthavinganinstanceoftheenclosingclassMethodsoftheinnerclass
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 写补充合同模板
- 制定加工合同范例
- 代理销售服务合同范例
- 临沂大学《公共建筑设计Ⅲ》2021-2022学年第一学期期末试卷
- 【机电实务】达为 教材精讲班教案 92-第9章-9.1、9.2-施工进度计划、施工进度控制
- 【机电实务】达为 教材精讲班教案 12-第2章-2.2-起重技术(三)
- 2024北京初三(上)期末英语汇编:动词
- 2024年个人债务重组合同违约金问题研究
- 2024年广告制作加工合同
- 2024年内招聘240名工作人员的合同履行地与管辖法院
- 社区委员的辞职报告 社区两委辞职报告
- 一次性使用卫生用品卫生标准GB15979-2002
- 简历常用icon图标Word简历模板
- 社区老年人群保健与护理PPT课件
- 【行业】电动车动力电池包高清大图赏析
- F1等级砝码标准报告
- 医院物资管理规定
- GL-585W90重负荷齿轮油质量指标
- 餐饮店劳动合同
- 土地利用现状上色标准表
- 超声波—微波辅助酸浸提纯硅藻土的试验研究
评论
0/150
提交评论