![2023Java程序員認(rèn)證考試_第1頁](http://file4.renrendoc.com/view/f1d7aa50e027f26cb73337a799773352/f1d7aa50e027f26cb73337a7997733521.gif)
![2023Java程序員認(rèn)證考試_第2頁](http://file4.renrendoc.com/view/f1d7aa50e027f26cb73337a799773352/f1d7aa50e027f26cb73337a7997733522.gif)
![2023Java程序員認(rèn)證考試_第3頁](http://file4.renrendoc.com/view/f1d7aa50e027f26cb73337a799773352/f1d7aa50e027f26cb73337a7997733523.gif)
![2023Java程序員認(rèn)證考試_第4頁](http://file4.renrendoc.com/view/f1d7aa50e027f26cb73337a799773352/f1d7aa50e027f26cb73337a7997733524.gif)
![2023Java程序員認(rèn)證考試_第5頁](http://file4.renrendoc.com/view/f1d7aa50e027f26cb73337a799773352/f1d7aa50e027f26cb73337a7997733525.gif)
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
第頁2023Java程序員認(rèn)證考試Java程序員認(rèn)證考試
SunJava認(rèn)證分為兩個級別:Sun認(rèn)證Java程序員和Sun認(rèn)證Java開發(fā)員。下面是我整理的關(guān)于Java程序員認(rèn)證考試,希望大家仔細(xì)閱讀!
SUN認(rèn)證
SUN認(rèn)證是給網(wǎng)絡(luò)設(shè)計界建立的一套認(rèn)證標(biāo)準(zhǔn),Sun公司推出了Java以及Solaris技術(shù)認(rèn)證方案。對于企業(yè)而言,可以借助這項(xiàng)認(rèn)證作為聘請人才的評判標(biāo)準(zhǔn),或是作為衡量員工技術(shù)水準(zhǔn)的'依據(jù);在個人方面,通過這些認(rèn)證也可以證明個人的技術(shù)實(shí)力。
1.Java認(rèn)證考試該認(rèn)證主要面對Java程序員。同時,該認(rèn)證是業(yè)界唯一經(jīng)Sun授權(quán)的Java認(rèn)證,考試內(nèi)容涉及全部Java相關(guān)學(xué)問、編程概念及applet開發(fā)技巧。Sun認(rèn)證Java程序員考試旨在視察您通過應(yīng)用軟件安排進(jìn)行困難編程的實(shí)力,之后還要測試您完成編程所需的學(xué)問。每次考試都包括65道以上的選擇題,時間大約為90分鐘。目前在這方面有兩項(xiàng)認(rèn)證:SunCertifiedJavaObject
Aninstanceofaclass
Hasstateandbehavior
Stateiscontainedinitsmembervariables
Behaviorisimplementedthroughitsmethods.
Message
Forobjectstointeractwithoneanother
Resultofamessageisamethodinvocationwhichperformsactionsormodifiesthestateofthereceivingobject
Classes
Anobject`sclassistheobject`stype
Theabilitytoderiveoneclassfromanotherandinherititsstateandbehavior
Mostgeneralclassesappearhigherintheclasshierarchy
Mostspecificclassesappearlowerintheclasshierarchy
Subclassesinheritstateandbehaviorfromtheirsuperclasses
Interface
Acollectionofmethoddefinitionswithoutactualimplementations
Fordefiningaprotocolofbehaviorthatcanbeimplementedbyanyclassanywhereintheclasshierarchy.
Packages
Acollectionofrelatedclassesandinterfaces
java.langisimportedbydefaultautomatically
JavaLanguageFundamentals
Theorderforevery"heading"isasfollows:
packagedeclarations--packagemy.applications.uinterfaces;
importstatements--importjava.awt.*
classdefinitions--publicclassmyClass{
Orderofpublicvs.non-publicclassdefinitionsdoesn`tmatter.
Allowsonlyonetop-levelpublicclasspersourcefile
Nameofsourcefilemustbethesameasnameofthepublicclass
main()methodmustbe:
public
static
Notreturnavalue(voidreturntype)
Takeanarrayofstrings:(String[]args)or(Stringargs[])doesn`tmatter
`args`isjustacommonname,youcanuseanynameyoulike.However,theremustbeasetof"[]"
Legalexamples:
publicstaticvoidmain(String[]args)
staticpublicvoidmain(Stringargs[])
CommandlineargumentsareplacedintheStringarraystartingat0afterthejavacommandandtheprogramname
Fornon-appletjavaapplication,theremustbeamainmethod
Forapplet,youdonotusemain()
Applet:
asubclassofPanel,whichitselfisasubclassofContainer
init()-calledwhenappletisfirstinstantiated.
start()-calledwhenthewebpagecontainingtheappletistobedisplayed
stop()-calledwhenthewebbrowserisabouttoshowanotherwebpageandquitthecurrentone
HTMLrequiredtodisplayanappletinawebpage:
PARAMtagallowsyoutopassavaluetoanapplet:
Tousethesevaluesinyourapplet,usethegetParameter(Stringparamname)methodtoreturnthevalueasastring:
greeting=getParameter("message");
JavaIdentifier
Consistsoflettersanddigits
Mustbeginwithaletter,"$"or"_"
Unlimitedlength
Cannotbethesameasareservedkeyword
JavaReservedWord
ReservedKeywordscovercategoriessuchasprimitivetypes,flowcontrolstatements,accessmodifiers,class,method,andvariabledeclarations,specialconstants,andunusedwords
abstract-boolean-break-byte-case-catch-char-class-const-continue-default-do-double-else-extends-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-while
True,falseandnullareliterals,notkeywords
Primitives
Occupypre-definednumbersofbits
Havestandardimplicitinitialvalues
Typeconversion
Youcannotassignbooleanstoanyothertype.
Youcannotassignabytetoachar.
YoucanassignavariableoftypeXtotypeYonlyifYcontainsawiderrangeofvaluesthanX.
Primitivesinorderof`width`arechar/short,int,long,float,double.
ForObjects,youcanassignobjectXtoobjectYonlyiftheyareofthesameclass,orXisasubclassofY,whichiscalled"upcasting".
Promotion
Inarithmeticoperations,variablemaybewidenedautomaticallyforthepurposeofevaluatingtheexpression
Thevariablesthemselveswouldnotbechanged,butforitscalculationsJavausesawidenedvalue.
Casting
Similartoforcingatypeconversion-valuescanbecastedbetweendifferentprimitivetypes
Donebyplacingthedestinationcasttypekeywordbetweenparenthesesbeforethesourcetypeexpression
Somecastoperationsmayresultinlossofinformation
Variablesderivedfromtheseprimitivetypesthataredeclaredinnestedblockscouldonlybeaccessiblewithinthatblockanditssub-blocks,andaredestroyedwhentheblocktheybelongtoisstopped
Majorprimitivetypes:
PrimitiveType
Size
RangeofValues
Byte
8bit
-27to27-1
Short
16bit
-215to215-1
Int
32bit,allaresigned
-231to231-1
Long
64bit
-263to263-1
Char
16bitunicode
`/u0000`to`/uffff`
(0to216-1)
Javaunicodeescapeformat:a"/u"followedbyfourhexadecimaldigits.e.g.,
charx=`/u1234`
Otherprimitivetypes:
Long-canbedenotedbyatrailing"l"or"L"
Float-canbedenotedbyatrailing"f"or"F"
Double-canbedenotedbyatrailing"d"or"D"
Booleans-trueorfalseonly,cannotbecasttoorfromothertypes
Array-declaredusingthesquarebrackets"[]".Exampleoflegaldeclarations:
int[]x;
intx[];
inti[][];declaresatwodimensionalarray.
Canbecreateddynamicallyusingthenewkeyword
Canbecreatedstaticallyusinganexplicitelementlist
Arrayelementcountsfrom0.Forexample,int[10]actuallyhas10elements,from0to9,notfrom1to10
Arraycanbeconstructedafterdeclaration,ortohaveeverythingdoneonthesingleline
int[]i;
i=newint[10];
OR
inti[]=newint[10];
ArraymemberscanbeinitializedeitherthroughaFORloop,orthroughdirectassignment
intmyarray[]=newint[10];
for(intj=0;j
myarray[j]=j;
}
OR
charmychar[]=newchar[]{`a`,`e`,`i`,`o`,`u`};
Donotgetconfusedwithstring.StringsareimplementedusingtheStringandStringBufferclasses.
BitwiseOperation
numericscanbemanipulatedatthebitlevelusingtheshiftandbitwiseoperators
Javaincludestwoseparateshift-rightoperatorsforsignedandunsignedoperations,the">>"andthe">>>"
>>performsasignedright-shift.Ifthefirstbitontheleftis1,thenwhenitright-shiftsthebits,itfillsina1sontheleft.Iftheleftmostbitis0,thenwhenitright-shiftsthebits,itfillsina0sontheleft.Thefirstbitrepresentsthesignofanumbertopreservethesignofthenumber.
>>>performsanunsignedright-shift.Theleftsideisalwaysfilledwith0s.
<<performsaleft-shift.Therightsideisalwaysfilledwith0s.
JavaOperator
Operatorsthatcomparevalues
equalto,"=="
notequalto,"!="
greaterthan,">"
lessthan,"<"
greaterthanorequalto,">="
lessthanorequalto,"<="
LogicalOperators
logicalAND,"&"
logicalOR,"|"
logicalXOR,"^"
booleanNOT,"!"
short-circuitlogicalAND,"&&"
short-circuitlogicalOR,"||"
Operatorprecedencedeterminestheorderofevaluationwhendifferentoperatorsareused,althoughprecedencecanbeexplicitlysetwithparentheses"()".
Multipleoperatorsofthesameprecedenceareevaluatedfromlefttoright
Inlogicalbooleanexpressions,therightoperandisonlyevaluatedafterthelefthandoperandhasbeenevaluatedfirst.
Forshort-circuitlogicalexpression,ifthelefthandconditiondoesnotevaluatetotrue,therighthandconditionwillnotbeevaluatedatall
ForObjects,==determineswhetherthevariablesreferencethesameobjectinmemory,ratherthancomparingtheircontents.
Forexample,when
Stringx="Hey";
Stringy="Hey";
JavacreatesonlyoneStringobject,sotheresultofcomparisonisalwaystrue.
Toavoidtheabovesituation,usetheNEWkeywordsothatstringxandycanbeofdifferentobjects.
InBooleans,equals()returnstrueifthetwoobjectscontainthesameBooleanvalue.
InString,equals()returnstrueiftheStringscontainthesamesequenceofcharacters.
JavaModifiers
private
Accessibleonlyfrominsidetheclass
Cannotbeinheritedbysubclasses
protected
Accessibleonlybyclassesinthesamepackageorsubclassesofthisclass
public
Canbeaccessedbyanyone
static
Belongstotheclass,nottoanyparticularinstanceoftheclass
Forvariables,thereisonlyonecopyforallinstancesoftheclass.Ifaninstancechangesthevalue,theotherinstancesseethatchanges
Formethods,itcanbecalledwithouthavingcreatedaninstance,andcannotbeusedthethiskeyword,norbereferredtoinstancevariablesandmethodsdirectlywithoutcreatinganinstanceForinnerclasses,theycanbeinstantiatedwithouthavinganinstanceoftheenclosingclass
Methodsoftheinnerclasscannotrefertoinstance
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 英語-河南金太陽2024-2025學(xué)年高二上學(xué)期第二次月考
- 加強(qiáng)學(xué)校實(shí)驗(yàn)室的安全教育
- 2025年高性能覆銅箔板原紙項(xiàng)目建議書
- 項(xiàng)目落地執(zhí)行綜合解決方案手冊
- 大學(xué)生夏季安全教育
- 影視行業(yè)拍攝安全須知
- 格林童話中的教育意義與價值分析
- 課本里的歷史人物讀后感
- 景觀仿木護(hù)欄安裝施工方案
- 山東畜牧養(yǎng)殖溫室施工方案
- 新產(chǎn)品開發(fā)(toshiba案例分析組)
- 4.1.1 有理數(shù)指數(shù)冪-參考課件
- 人教版六年級數(shù)學(xué)下冊全冊大單元教學(xué)任務(wù)單
- JJF(新) 112-2023 微量殘?zhí)繙y定儀校準(zhǔn)規(guī)范
- 2024銷售人員年終工作總結(jié)2篇
- 2024年牛排行業(yè)分析報告及未來發(fā)展趨勢
- 食品投訴處理培訓(xùn)課件
- 血液科品管圈PDCA案例合集
- 創(chuàng)傷患者護(hù)理和評估
- 【全套】醫(yī)院智能化系統(tǒng)報價清單
- 北師大版五年級數(shù)學(xué)上冊典型例題系列之期中專項(xiàng)練習(xí):分段計費(fèi)問題(解析版)
評論
0/150
提交評論