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

SUN的SCJP认证大纲

 
 

 电脑知识大全    责编: 莫言    更新时间: 2007.02.25

 
 

以下是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.

 
 

首页 | 联系我们 | 收藏本站 | 设为首页 | 服务条款 | 隐私政策 | 免责声明 | 粤ICP备07031496号 |

Copyright ©2007-2008 www.96pc.com All rights reserved.