??????????
???????????? ???????[ 2013/12/24 16:57:21 ] ??????????????? ???????
????16. ??????????????????????????. ????????? ????????? 0?? ?????? С??? ????? NaN (??????)?? ??????. ??????????? ???????????? ??????? ?? ASCII ??????? ????????????. ???????????? ?????? 1?? ??????? ???????. ????????? ???? 1??1??? 2??29??? 12??31???. ????????????????Щ???????μ????. ???????????????????????Щ?????? ????????????? "???".
????17. ?????????????????????????????? ???????????????????????????????????????????? ?????????в???????в????????.?????????? ??????????????????????? (??: ???????? ????? ??????? ?????) ???????????. ????????????????????????????Χ.?????????????? ???????????????????? ??????????????????. ????????????????????? little endian ?? big endian ?????????????. ???????????? ???????????????????.void testByteSwapper(){ for (int i = 0; i < 1000000; i++) { double v0 = Random.getDouble(); double v1 = ByteSwapper.swap(v0); double v2 = ByteSwapper.swap(v1); assertEquals(v0?? v2); }}
????18. ?????????????????????£? ??????鯔????????????. ?????????????????????? ???????????. ??????????????????????????????.??????????????????? ???????????????????????????.
????19. ???????????????????????? assertEquals(a?? b) ?????? assertTrue(a == b)?? ????????????ε??2??????????????????. ?????????????????????£? ???????????????? ?????????????????????????.
????20. ???????????????????????д??????? ?????3???????????????????.???????·????????????????????????? ???????????:void setLength(double length) throws IllegalArgumentExcepti?????????????????????????????????????:try { setLength(-1.0); fail(); // If we get here?? something went wrong}catch (IllegalArgumentException exception) { // If we get here?? all is fine}
????21. ????????????????д?????????????????????? ????????е???н???????????????????? ????????????????????д?????????Ч????.?Щ????:????????????? ????????н??г????. ???? setter ??????????.?????????ü?к?????麯??.??????????? (C++) ????????? (Java) ????????н??.???????????????.?????????б?д????????????.????к???н???о?????????????????????????????Ч??.????????????. ??????????? ???з??????????????????в???. ???????????????:public void scale(double x0?? double y0?? double scaleFactor){ // scaling logic}public void scale(double x0?? double y0){ scale(x0?? y0?? 1.0);}???????????????? ?????????????????????????.
????22. ?????????????????????????????ü????????л????? ??????κ????/?κε?????????. ???????????????????? ??Щ????????????????.??????????????????????? ???????????????????????? ?????????д?????????? ?????????????? ???????????????????.
????23. ??????????д?????????????? ????д?????????????????. ?????????????????????? ???????и????????????? ?????????? 80% ????.??????? ??д??????????????????????????????и?????. ??????????????????????????????????????? ?????????д?Χ???????飬 ????????????.
????24. ??????????????????????????????????????? ??????????????????????????????飬 ???????????????????.
????25. ???????????????????????????????:Handle handle = manager.getHandle();assertNotNull(handle);String handleName = handle.getName();assertEquals(handleName?? "handle-01");???????????????? ????????????′???????? ??μ??????????????. ?κ?????????????????????? ????????????????ж?????????????????. ??????????????д??:Handle handle = manager.getHandle();assertNotNull(handle);if (handle == null) return;String handleName = handle.getName();assertEquals(handleName?? "handle-01");
????26. д???????????? bug??????? bug?? ???д???????????????????? bug (????????????)?? ???????????????????????.
????27. ??????????????????????????????????????????????????????д??? ????????????????????????.?????????Ч????ó??????????? ??? ??????: ???1?????????????????????????????????????????.
??????
???·???
??????????????????
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