您的位置:首页>>认证综合>>SUN认证

最新SUN CERTIFIED PROGRAMMER FOR JAVAtm 2 PLATFORM 1

 
最新SUN CERTIFIED PROGRAMMER FOR JAVAtm 2 PLATFORM 1.2考试大纲
SUNCERTIFIEDPROGRAMMERFORJAVA[tm]2PLATFORM1.2
SECTION1:DECLARATIONSANDACCESSCONTROL
Writecodethatdeclares,constructs,andinitializesarraysofanybasetypeusinganyofthepermittedformsbothfordeclarationandforinitialization.
Declareclasses,innerclasses,methods,instancevariables,staticvariables,andautomatic(methodlocal)variablesmakingappropriateuseofallpermittedmodifiers(suchaspublic,final,static,abstract,andsoforth).
Statethesignificanceofeachofthesemodifiersbothsinglyandincombination,andstatetheeffectofpackagerelationshipsondeclareditemsqualifiedbythesemodifiers.
Foragivenclass,determineifadefaultconstructorwillbecreated,andifso,statetheprototypeofthatconstructor.
Statethelegalreturntypesforanymethodgiventhedeclarationsofallrelatedmethodsinthisorparentclasses.
SECTION2:FLOWCONTROLANDEXCEPTIONHANDLING
Writecodeusingifandswitchstatementsandidentifylegalargumenttypesforthesestatements.
Writecodeusingallformsofloopsincludinglabeledandunlabeleduseofbreakandcontinue,andstatethevaluestakenbyloopcontrolvariablesduringandafterloopexecution.
Writecodethatmakesproperuseofexceptionsandexceptionhandlingclauses(try,catch,finally)anddeclaresmethodsandoverridingmethodsthatthrowexceptions.
SECTION3:GARBAGECOLLECTION
Statethebehaviorthatisguaranteedbythegarbagecollectionsystem,andwritecodethatexplicitlymakesobjectseligibleforcollection.
SECTION4:LANGUAGEFUNDAMENTALS
Identifycorrectlyconstructedsourcefiles,packagedeclarations,importstatements,classdeclarations(ofallformsincludinginnerclasses),interfacedeclarationsandimplementations(forjava.lang.Runnableorotherinterfacedescribedinthetest),methoddeclarations(includingthemainmethodthatisusedtostartexecutionofaclass),variabledeclarationsandidentifiers.
Statethecorrespondencebetweenindexvaluesintheargumentarraypassedtoamainmethodandcommandlinearguments.
IdentifyallJavaprogramminglanguagekeywordsandcorrectlyconstructedidentifiers.
Statetheeffectofusingavariableorarrayelementofanykindwhennoexplicitassignmenthasbeenmadetoit.
StatetherangeofallprimitivedatatypesanddeclareliteralvaluesforStringandallprimitivetypesusingallpermittedformats,bases,andrepresentations.
SECTION5:OPERATORSANDASSIGNMENTS
Determinetheresultofapplyinganyoperator,includingassignmentoperators,instanceof,andcaststooperandsofanytype,class,scope,oraccessibility,oranycombinationofthese.
Determinetheresultofapplyingthebooleanequals(Object)methodtoobjectsofanycombinationoftheclassesjava.lang.String,java.lang.Boolean,andjava.lang.Object.
Inanexpressioninvolvingtheoperators&,|,&&,||,andvariablesofknownvalues,statewhichoperandsareevaluatedandthevalueoftheexpression.
Determinetheeffectuponobjectsandprimitivevaluesofpassingvariablesintomethodsandperformingassignmentsorothermodifyingoperationsinthatmethod.
SECTION6:OVERLOADING,OVERRIDING,RUNTIMETYPE,ANDOBJECTORIENTATION
Statethebenefitsofencapsulationinobjectorienteddesignandwritecodethatimplementstightlyencapsulatedclassesandtherelationships"isa"and"hasa".
Writecodetoinvokeoverriddenoroverloadedmethodsandparentaloroverloadedconstructors,anddescribetheeffectofinvokingthesemethods.
Writecodetoconstructinstancesofanyconcreteclassincludingnormaltoplevelclasses,innerclasses,staticinnerclasses,andanonymousinnerclasses.
SECTION7:THREADS
Writecodetodefine,instantiate,andstartnewthreadsusingbothjava.lang.Threadandjava.lang.Runnable.
Recognizeconditionsthatmightpreventathreadfromexecuting.
Writecodeusingsynchronized,wait,notify,ornotifyAll,toprotectagainstconcurrentaccessproblemsandtocommunicatebetweenthreads.
Definetheinteractionbetweenthreadsandbetweenthreadsandobjectlockswhenexecutingsynchronized,wait,notify,ornotifyAll.
SECTION8:THEJAVA.AWTPACKAGE
Writecodeusingcomponent,container,andLayoutManagerclassesofthejava.awtpackagetopresentaGraphicalUserInterfacewithspecifiedappearanceandresizebehavior,anddistinguishtheresponsibilitiesoflayoutmanagersfromthoseofcontainers.
Writecodetoimplementlistenerclassesandmethods,andinlistenermethods,extractinformationfromtheeventtodeterminetheaffectedcomponent,mouseposition,nature,andtimeoftheevent.
Statetheeventclassnameforanyspecifiedeventlistenerinterfaceinthejava.awt.eventpackage.
SECTION9:THEJAVA.LANGPACKAGE
Writecodeusingthefollowingmethodsofthejava.lang.Mathclass:abs,ceil,floor,max,min,random,round,sin,cos,tan,andsqrt.
Describethesignificanceoftheimmutabilityofstringobjects.
SECTION10:THEJAVA.UTILPACKAGE
Makeappropriateselectionofcollectionclasses/interfacestosuitspecifiedbehaviorrequirements.
SECTION11:THEJAVA.IOPACKAGE
Writecodethatusesobjectsofthefileclasstonavigateafilesystem.
WritecodethatusesobjectsoftheclassesInputStreamReaderandoutputStreamWritertotranslatebetweenUnicodeandeitherplatformdefaultorISO8859-1characterencodingandDistinguishbetweenconditionsunderwhichplatformdefaultencodingconversionshouldbeusedandconditionsunderwhichaspecificconversionshouldbeused.
SelectvalidconstructorargumentsforFilterInputStreamandFilterOutputStreamsubclassesfromalistofclassesinthejava.io.package.
Writeappropriatecodetoread,writeandupdatefilesusingFileInputStream,FileOutputStream,andRandomAccessFileobjects.
DescribethepermanenteffectsonthefilesystemofconstructingandusingFileInputStream,FileOutputStream,andRandomAccessFileobjects.

查看上一页  返回分类首页 返回96PC首页  查看下一页

  版权所有:电脑知识大全 网站备案:粤ICP备07031496号  联系我们

友情链接:母婴知识  外贸商务网  娱乐频道  汽车维修知识  股票入门知识  游戏攻略秘籍  本站空间由安信网络提供