Java ?????Collections?????
???????????? ???????[ 2013/12/11 9:10:51 ] ????????
????????Collection????????????1.2???????????
????1. ??????????HashTable?????????????????JDK 1.2?????????
????2. iterators ?? fail-fast???????????????? CRUD????
????3. serializable ?? cloneable
????4. ??????null????
????5. ???????optional methods????add??remove??????????UnsupportedOpertaionException??
????6. Set????Map??Set.add ????Map.put(SetValue?? new Object);??
????* ?????????
????heap??stack????????
?????????????μ?????????????????????????????ɡ??????????????????д????????????????????
????????Collections Framework??????
????1. ???д???ArrayList
???????д??ArrayList??м?? AbstractList????????List??RandomAccess??Cloneable??Serializable????????????????ArryList?????д????????Collection??????????????????????д??add??get??set??size??iterator??????????????????
???????磺
????1.1 ???????ArrayList??????????????????????????????????????????????????????????????????????????????飬?????????????Copy?????????С?
????1.2 ????????????????Object?????????????Object?????????????κ?????????????????????????add?????Object[]????get?????з???????????????????????????????
???????磺return (E) elementData[index]; ( ArrayList get????????? )
????1.3 ???????????????????????getter???????????????鼰?????????????????????????????á???????????л????????????????????????????????????????????
????1.4 Iterator?????????????????getter???????б??????Щ?????
???????????????????????????????????????????????????????????е????????
?????????getter??????????????ArrayList??getter???????????return???Object[]???顣
???????Iterator??????????????????????????????????
?????磺LinkedList??HashSet???????迼????????????????????????HashMap??
????1.5 fail-fast:
??????iterator?????е????????????????????????????add??set?????????????????ConcurrentModificationException????
????fail-fast ???????????
????Martin Fowler 2004??IEEE Software???????Fail Faster??
????2. ???Junit????
????2.1?????????????в???????????????????????????ο???????????Java ??? ?? ??Java ??????4??
????2.2????????Щ?????????????ЩЧ????????????BUG??????????磺????????NULL??????????????
???????????????????з??????磺?????? ????????????
????2.3???????????????Щ????????????????????????п???????????дtest??????????
??????????????????
????????Hash Table(????HashCode??equals)??????????
????RandomAccess??Serializable(writeObject??readObject??transient)
????Collections ???????????
???????????????????java.util.Collections ?? java.util.Arrays??
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Java???????????Щ???????????????Java????????????????Java?б???Map????????Java Web???????????????Java??????????????д?????Java????????7???????????????????????(java .net ?????)???Java??????????Python??????Java webdriver??λ????????′????е?????Java??д??????????????????Java???????????????JavaScript????????????Java?????????????????? Java???????10??????????????Java?м????????????????java???????ü???????????м???????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????