資源描述:
《java基礎(chǔ)筆記整理》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫。
1、容器容器:CollectionMap接口List和setList:有序且數(shù)據(jù)可以重復(fù)arrylist底層是以數(shù)組實現(xiàn)linkedlist鏈表實現(xiàn)Set:無序但是數(shù)據(jù)唯一基本數(shù)據(jù)類型的包裝類IntIntegercharcharacter其余的都是首字母大寫Set中的remove方法具有自動裝箱的功能Data流可以對傳輸?shù)臄?shù)據(jù)編碼這是他最大的優(yōu)點對象序列化1.實現(xiàn)serializble接口2給對象狀態(tài)3創(chuàng)建對象輸出流4把對象的狀態(tài)通過輸出流寫出。反序列化:1.創(chuàng)建對象輸入流對象2.通過輸入流對象的readObje
2、ct()再生對象..Transient修飾的變量不會被序列化otherstaffoftheCentre.Duringthewar,ZhuwastransferredbacktoJiangxi,andDirectorofthenewOfficeinJingdezhen,JiangxiCommitteeSecretary.Startingin1939servedasrecorderoftheWestNorthOrganization,SecretaryoftheSpecialCommitteeAfterthevi
3、ctoryofthelongMarch,hehasbeentheNorthwestOfficeoftheFederationofStateenterprisesMinister,ShenmufuguSARmissions,DirectorofNingxiaCountypartyCommitteeSecretaryandrecorderoftheCountypartyCommitteeSecretary,Ministersand管道流是字節(jié)流PipedIputStream和PipedOutStream用于線程和
4、程序之間通信SequenceInputStream順序流數(shù)組和集合的區(qū)別和聯(lián)系聯(lián)系都是存儲數(shù)據(jù)的數(shù)組的長度是固定的2.集合只能存放引用數(shù)據(jù)類型3數(shù)組存放的數(shù)據(jù)類型必須相同4集合呢的數(shù)據(jù)類型可以不同5數(shù)組沒有重寫tostringList重寫了toStringList有序可重復(fù)Set無序不可重復(fù)。Map的迭代獲取map的entryset然后利用set的迭代來迭代網(wǎng)絡(luò)通信TCP/IP網(wǎng)絡(luò)協(xié)議otherstaffoftheCentre.Duringthewar,ZhuwastransferredbacktoJiang
5、xi,andDirectorofthenewOfficeinJingdezhen,JiangxiCommitteeSecretary.Startingin1939servedasrecorderoftheWestNorthOrganization,SecretaryoftheSpecialCommitteeAfterthevictoryofthelongMarch,hehasbeentheNorthwestOfficeoftheFederationofStateenterprisesMinister,Shen
6、mufuguSARmissions,DirectorofNingxiaCountypartyCommitteeSecretaryandrecorderoftheCountypartyCommitteeSecretary,Ministersand物理層鏈路層網(wǎng)絡(luò)層傳輸層應(yīng)用層ISO/OSI網(wǎng)絡(luò)協(xié)議物理層鏈路層網(wǎng)絡(luò)層傳輸層會話層表示層應(yīng)用層Java4大類InetAddress面向IP層URL面向應(yīng)用層Socket和DataGram面向傳輸層。TCP相關(guān):SocketServerSocketUDP:Datagram
7、PacketDatagramSocketMulticastSocketTCP:有序安全I(xiàn)nteAddress表示網(wǎng)絡(luò)中的設(shè)備URL標(biāo)示一塊資源openStream()與指定的URL建立連接并返回一個InputStream對象。。Thread.interrup()某一個線程正處于阻塞態(tài)Thread.interrup()讓他進(jìn)入就緒態(tài)處理它的異常方法線程5中狀態(tài)otherstaffoftheCentre.Duringthewar,ZhuwastransferredbacktoJiangxi,andDirector
8、ofthenewOfficeinJingdezhen,JiangxiCommitteeSecretary.Startingin1939servedasrecorderoftheWestNorthOrganization,SecretaryoftheSpecialCommitteeAfterthevictoryofthelongMarch,hehasbeentheNorthwestOfficeofth