版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、第10頁(yè) 共10第10頁(yè) 共10頁(yè)Java 程序員認(rèn)證考試SUN 認(rèn)證SUNSunJavaSolaris以證明個(gè)人的技術(shù)能力。1.JavaJavaSunJavaJavaSunJava65以上的選擇題,時(shí)間大約為 90 分鐘。目前在這方面有兩項(xiàng)認(rèn)證:Sun Certified Java Programmer(SCJP)和 Sun Certified Java Developer(SCJD)。SCJP測(cè)驗(yàn)Java程序設(shè)計(jì)概念及能力,內(nèi)容偏重于Java語(yǔ)法及JDK的內(nèi)容;SCJD則進(jìn)一步測(cè)試用Java開(kāi)發(fā)應(yīng)用程序的能力,考試者必須先成一個(gè)程序的設(shè)計(jì)方案,再回答與此方案相關(guān)的一些問(wèn)題。2. Solar
2、is 系統(tǒng)管理認(rèn)證考試Solaris/Sun OS,SunCertified Solaris Administrator(CSA)。CSA(Part 和 PartSolaris3. Solaris 網(wǎng)絡(luò)管理認(rèn)證考試Solaris,SunCertified Administrator(CNA)。內(nèi)容包括基本網(wǎng)絡(luò)概念、Routing and Subnet、Security、Performance、DNS、NIS+等。SUNSunMicrosystemsSun技術(shù)能力的肯定。SUN JAVA 程序員認(rèn)證考試大綱Basic Object Oriented ConceptObjectAn instanc
3、e of a class Has state and behaviorState is contained in its member variables Behavior is implemented through its methods. MessageFor objects to interact with one anotherResult of a message is a method invocation which performs or modifies the state of the receiving objectClassesAn objects class is
4、the objects typeThe ability to derive one class from another and inherit its state and behaviorMost general classes appear higher in the class hierarchy Most specific classes appear lower in the class hierarchy Subclasses inherit state and behavior from their InterfaceA collection of method definiti
5、ons without actual implementations For defining a protocol of behavior that can be implemented byany class anywhere in the class hierarchy.PackagesA collection of related classes and interfaces java.lang is imported by default automatically Java Language FundamentalsThe order for every heading is as
6、 follows:package declarations - package my.applications.uinterfaces; import statements - import java.awt.某class definitions - public class myClass Order of public vs. non-public class definitions doesnt matter. Allows only one top-level public class per source fileName of source file must be the sam
7、e as name of the public class main() method must be:public staticNot return a value (void return type)Take an array of strings:(String args) or (String args) doesnt matterargs is just a common name, you can use any name you like.However, there must be a set ofLegal eamples:public static void main(St
8、ring args) static public void main(String args)Command line arguments are placed in the String array starting at0 after the java command and the program nameFor non-applet java application, there must be a main method For applet, you do not use main()Applet:a subclass of Panel, which itself is a sub
9、class of Container init() - called when applet is first instantiated.start() - called when the web page containing the applet is to be displayedstop() - called when the web browser is about to show another web page and quit the current oneHTML required to display an applet in a web page: PARAM tag a
10、llows you to pass a value to an applet:To use these values in your applet, use the getParameter(Stringparamname ) method to return the value as a string: greeting=getParameter(message);Java IdentifierConsists of letters and digitsMust begin with a letter , $ or _ Unlimited lengthCannot be the same a
11、s a reserved keyword Java Reserved WordReserved Keywords cover categories such as primitive types, flow control statements, access modifiers, class, method, and variable declarations, special constants, and unused wordsabstract - boolean - break - byte - case - catch - char - class -const -continue
12、- default - do -double - else - etends - 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 -
13、 void - volatile - whileTrue, false and null are literals, not keywords PrimitivesOccupy pre-defined numbers of bits Have standard implicit initial values Type conversionYou cannot assign booleans to any other type. You cannot assign a byte to a char.You can assign a variable of type 某 to type Y onl
14、y if Y contains a wider range of values than 某.Primitives in order of width are char/short, int, long, float,double.For Objects, you can assign object 某 to object Y only if are of the same class, or 某 is a subclass of Y, which is called upcasting.PromotionIn arithmetic operations, variable may be wi
15、dened for the purpose of evaluating the epressionThe variables themselves would not be changed, but for its calculations Java uses a widened value.CastingSimilar to forcing a type conversion - values can be casted between different primitive typesDone by placing the destination cast type keyword par
16、entheses before the source type epressionSome cast operations may result in loss of informationVariables derived from these primitive types that are declared in nested blocks could only be accessible within that block and its sub- blocks, and are destroyed when the block they belong to is stoppedMaj
17、or primitive types: Primitive TypeSizeRange of Byte8 bit-27 to 27-1Short16 bit-215 to 215-1Int32 bit, all are signed-231 to 231-1Long64 bit-263 to 2 63-1Char16 bit unicode/u0000 to (0 to 216-1 )Java unicode escape format: a /u followed by four hedigits. e.g.,char 某=/u1234Other primitive types:Long -
18、 can be denoted by a trailing l or L Float - can be denoted by a trailing f or F Double - can be denoted by a trailing d or DBooleans - true or false only, cannot be cast to or from other typesArray - declared using the square brackets . Eample legal declarations :intintint i; declares a two dimensi
19、onal array.Can be created dynamically using the new keywordCan be created statically using an eplicit element listArray element counts from 0. For eample, int10 actually has10 elements, from 0 to 9, not from 1 to 10Array can be constructed after declaration, or to have everything done on the single
20、lineint i;i = new int10;ORint i = new int10;Array members can be initialized either through a FOR loop, through direct assignmentint myarray = new for(int j=0; jmyarrayj=j; ORchar mychar= new char a,e,i,o,u;Do not get confused with string. Strings are implemented using the String and StringBuffer cl
21、asses.Bitwise Operationnumerics can be manipulated at the bit level using the shift and bitwise operatorsJava includes two separate shift-right operators for signed unsigned operations, the and the performs a signed right-shift. If the first bit on the left 1, then when it right-shifts the bits, it
22、fills in a 1s on the left. If the leftmost bit is 0, then when it right-shifts the bits, it fills in a 0s on the left. The first bit represents the sign of a number to preserve the sign of the number. performs an unsigned right-shift. The left side is always filled with 0s.less than, =less than or e
23、qual to, =Logical Operators logical AND, & logical OR, | logical 某 OR,boolean NOT, !short-circuit logical AND, & short-circuit logical OR, |Operator precedence determines the order of evaluation when different operators are used, although precedence can be eset with parentheses ().Multiple operators
24、 of the same precedence are evaluated from left to rightIn logical boolean epressions, the right operand is evaluated after the left hand operand has been evaluated For short-circuit logical e 某 pression, if the left hand condition does not evaluate to true, the right hand condition will not be eval
25、uated at allFor Objects, = determines whether the variables reference the same object in memory, rather than comparing their contents.For eample, String 某 = Hey; String y = Hey;Java creates only one String object, so the result of comparison is always true.To avoid the above situation, use the NEW k
26、eyword so that string某 and y can be of different objects.In Booleans, equals() returns true if the two objects contain the same Boolean value.In String, equals() returns true if the Strings contain the same sequence of characters.Java Modifiers privateAccessible only from inside the class Cannot be
27、inherited by subclasses protectedAccessible only by classes in the same package or subclasses this classpublicCan be accessed by staticBelongs to the class, not to any particular instance of the class For variables, there is only one copy for all instances of theclass. If an instance changes the val
28、ue, the other instances see that changesFor methods, it can be called without having created an instance, and cannot be used the this keyword, nor be referred to instance variables and methods directly without creating an instance For inner classes, they can be instantiated without having an instance of the enclosing classMethods ofthe inner classcannot refer to instance variables orme
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2026年金華義烏市中心醫(yī)院醫(yī)共體上溪院區(qū)招聘協(xié)議工作人員2人筆試參考題庫(kù)及答案解析
- 2026中國(guó)標(biāo)準(zhǔn)化研究院質(zhì)量研究分院信用標(biāo)準(zhǔn)化研究崗企業(yè)編制職工招聘2人考試備考試題及答案解析
- 2026四川樂(lè)山市峨眉山旅游股份有限公司市場(chǎng)化選聘全資子公司總經(jīng)理1人考試備考題庫(kù)及答案解析
- 2026年池州市直某機(jī)關(guān)單位招聘駕駛員3名考試備考題庫(kù)及答案解析
- 2026西藏民族大學(xué)招聘工程審計(jì)人員考試參考試題及答案解析
- 2026中遠(yuǎn)海運(yùn)物流供應(yīng)鏈有限公司西南分公司招聘考試備考題庫(kù)及答案解析
- 2026年海南屯昌縣公開(kāi)招聘縣屬國(guó)有企業(yè)領(lǐng)導(dǎo)人員備考題庫(kù)有答案詳解
- 2026年雁塔區(qū)大雁塔社區(qū)衛(wèi)生服務(wù)中心招聘?jìng)淇碱}庫(kù)及完整答案詳解一套
- 內(nèi)蒙古民族大學(xué)2026年公開(kāi)招募銀齡教師備考題庫(kù)及1套參考答案詳解
- 2026年麻陽(yáng)苗族自治縣錦和鎮(zhèn)中心衛(wèi)生院關(guān)于招聘聘用制工作人員的備考題庫(kù)及完整答案詳解1套
- 2022年-2024年青島衛(wèi)健委事業(yè)編中醫(yī)筆試真題
- 新疆三校生考試題及答案
- JJG(交通) 070-2006 混凝土超聲檢測(cè)儀
- 2025新疆亞新煤層氣投資開(kāi)發(fā)(集團(tuán))有限責(zé)任公司第三批選聘/招聘筆試歷年參考題庫(kù)附帶答案詳解
- 合作銷售礦石協(xié)議書(shū)
- 2025上海初三各區(qū)一模、二模作文題、主題歸納及審題分析指導(dǎo)
- 圍手術(shù)期心肌梗塞的護(hù)理
- 2025-2026學(xué)年蘇教版(2024)小學(xué)科學(xué)二年級(jí)上冊(cè)期末測(cè)試卷附答案(共三套)
- 2025小學(xué)六年級(jí)英語(yǔ)時(shí)態(tài)綜合練習(xí)卷
- 垃圾清運(yùn)補(bǔ)充合同范本
- 2026屆湖南省長(zhǎng)沙市長(zhǎng)郡集團(tuán)九年級(jí)物理第一學(xué)期期末預(yù)測(cè)試題含解析
評(píng)論
0/150
提交評(píng)論