|
SUN的SCJP认证大纲
以下是SUN公司列出的JAVA2认证考试的考试大纲。
Section1DeclarationsandAccessControl
·Writecodethatdeclares,constructs,andinitializesarraysofanybasetypeusinganyofthepermittedformsbothfordeclarationandforinitialization.
·Declareclasses,innerclasses,methods,instancevariables,staticvariables,andautomatic(methodlocal)variablesmakingappropriateuseofallpermittedmodifiers(suchaspublic,final,static,abstract,andsoforth).Statethesignificanceofeachofthesemodifiersbothsinglyandincombination,andstatetheeffectofpackagerelationshipsondeclareditemsqualifiedbythesemodifiers.
·Foragivenclass,determineifadefaultconstructorwillbecreated,andifso,statetheprototypeofthatconstructor.
·Statethelegalreturntypesforanymethodgiventhedeclarationsofallrelatedmethodsinthisorparentclasses.
Section2FLOWCONTROLANDEXCEPTIONHANDLING
·Writecodeusingifandswitchstatementsandidentifylegalargumenttypesforthesestatements.
·Writecodeusingallformsofloopsincludinglabeledandunlabeleduseofbreakandcontinue,andstatethevaluestakenbyloopcontrolvariablesduringandafterloopexecution.
·Writecodethatmakesproperuseofexceptionsandexceptionhandlingclauses(try,catch,finally)anddeclaresmethodsandoverridingmethodsthatthrowexceptions.
Section3GarbageCollection
·Statethebehaviorthatisguaranteedbythegarbagecollectionsystem,andwritecodethatexplicitlymakesobjectseligibleforcollection.
Section4LanguageFundamentals
·Identifycorrectlyconstructedsourcefiles,packagedeclarations,importstatements,classdeclarations(ofallformsincludinginnerclasses),interfacedeclarationsandimplementations(forjava.lang.Runnableorotherinterfacedescribedinthetest),methoddeclarations(includingthemainmethodthatisusedtostartexecutionofaclass),variabledeclarationsandidentifiers.
·Statethecorrespondencebetweenindexvaluesintheargumentarraypassedtoamainmethodandcommandlinearguments.IdentifyallJavaProgrammingLanguagekeywordsandcorrectlyconstructedidentifiers.
·Statetheeffectofusingavariableorarrayelementofanykindwhennoexplicitassignmenthasbeenmadetoit.
·StatetherangeofallprimitivedatatypesanddeclareliteralvaluesforStringandallprimitivetypesusingallpermittedformats,bases,andrepresentations.
Section5Operatorsandassignments
·Determinetheresultofapplyinganyoperator,includingassignmentoperators,instanceof,andcaststooperandsofanytype,class,scope,oraccessibility,oranycombinationofthese.
·Determinetheresultofapplyingthebooleanequals(Object)methodtoobjectsofanycombinationoftheclassesjava.lang.String,java.lang.Boolean,andjava.lang.Object.
·Inanexpressioninvolvingtheoperators&,|,&&,||,andvariablesofknownvaluesstatewhichoperandsareevaluatedandthevalueoftheexpression.
·Determinetheeffectuponobjectsandprimitivevaluesofpassingvariablesintomethodsandperformingassignmentsorothermodifyingoperationsinthatmethod.
Section6Overloading,Overriding,RuntimeType,andObjectOrientation
·Statethebenefitsofencapsulationinobjectorienteddesignandwritecodethatimplementstightlyencapsulatedclassesandtherelationships"isa"and"hasa".
·Writecodetoinvokeoverriddenoroverloadedmethodsandparentaloroverloadedconstructors;anddescribetheeffectofinvokingthesemethods.
·Writecodetoconstructinstancesofanyconcreteclassincludingnormaltoplevelclasses,innerclasses,staticinnerclasses,andanonymousinnerclasses.
Section7Threads
·Writecodetodefine,instantiate,andstartnewthreadsusingbothjava.lang.Threadandjava.lang.Runnable.
·Recognizeconditionsthatmightpreventathreadfromexecuting.
·Writecodeusingsynchronized,wait,notify,ornotifyAll,toprotectagainstconcurrentaccessproblemsandtocommunicatebetweenthreads.Definetheinteractionbetweenthreadsandbetweenthreadsandobjectlockswhenexecutingsynchronized,wait,notify,ornotifyAll.
Section8Thejava.awtPACKAGE
·Writecodeusingcomponent,container,andLayoutManagerclassesofthejava.awtpackagetopresentaGUIwithspecifiedappearanceandresizebehavior,anddistinguishtheresponsibilitiesoflayoutmanagersfromthoseofcontainers.
·Writecodetoimplementlistenerclassesandmethods,andinlistenermethods,extractinformationfromtheeventtodeterminetheaffectedcomponent,mouseposition,nature,andtimeoftheevent.Statetheeventclassnameforanyspecifiedeventlistenerinterfaceinthejava.awt.eventpackage.
Section9Thejava.langPACKAGE
·Writecodeusingthefollowingmethodsofthejava.lang.Mathclass:abs,ceil,floor,max,min,random,round,sin,cos,tan,sqrt.
·DescribethesignificanceoftheimmutabilityofStringobjects.
Section10Thejava.utilPACKAGE
·Makeappropriateselectionofcollectionclasses/interfacestosuitspecifiedbehaviorrequirements.
Section11Thejava.ioPACKAGE
·Writecodethatusesobjectsofthefileclasstonavigateafilesystem.
·WritecodethatusesobjectsoftheclassesInputStreamReaderandOutputStreamWritertotranslatebetweenUnicodeandeitherplatformdefaultorISO8859-1characterencodingandDistinguishbetweenconditionsunderwhichplatformdefaultencodingconversionshouldbeusedandconditionsunderwhichaspecificconversionshouldbeused.
·SelectvalidconstructorargumentsforFilterInputStreamandFilterOutputStreamsubclassesfromalistofclassesinthejava.io.package.
·Writeappropriatecodetoread,writeandupdatefilesusingFileInputStream,FileOutputStream,andRandomAccessFileobjects.
·DescribethepermanenteffectsonthefilesystemofconstructingandusingFileInputStream,FileOutputStream,andRandomAccessFileobjects.
查看上一页
返回分类首页 返回96PC首页
查看下一页 |