????Gotchas?????壬???????????е????塣

??????????????з?й??????(?ο??????“??????????????”)

???????????

????Java Casts??Java????????????????????ε????Collection????????object?????????????????????????????Щ????Щ?????????????N????????????????????????????????????е????????????????????鵽????????鯔????

????????Java?????????磺Bubblegum b = new Bubblegom(); ?? swimmer = swimner + 1; ??????????????

?????????????????????????????????????????????????????????????????????????ι?????豸?????????????

??????????????????????????????????е?????

?????????????????Ч????????????copy + paste????????????????????????????Ч???????(??????Copy + Paste?????????bug??ò??????)

????????listener??д???listener?????????????е?button????????listener????????????????listener??????????if…else…???????????

?????????????顣?????????????????????????????????

???????á?????????get/set???????????????public???????????????????????????????????

??????????????????????????е?API???????6??8?飬????????4???????????????????????

?????????????????е???????????public????????????????????????????????????????????????????????????????????????????á?

???????к??譚????drawRectangle(height?? width) ??? drawRectangle(width?? height)????release??????汾????????????????????????????????????????????????????

???????????????????????磬??setAlignment(int alignment)????setLeftAlignment?? setRightAlignment?? setCenterAlignment??

????Packratting???????????е??????????????????????????

????That’s Final??Final?????е??????????????????????????????????????????????????????java.lang.String????????????

??????????y?????java?У?BS??????C++??BS????麯????

???????????layout????????????????????????????????????????layout?????????????GridBagLayout??????grid????hard code.

??????????????????????????????????????(getenv() - C++ / System.getProperty() - Java )???????????e????????????????????????????????????????

???????Magic number???ο???Linux???????????

???????????????1)??????????????????????????У???????????????????????κι????????????????????????????????????????2)????????????????????????????????Щ??

????????????????????????????Щ?????????????????У??????????????????е???????????????е???????????

???????????????????????????и???????????????????磬??????????????????????????????п???????????????????????????????е???????????????С?

????????????????????д???????????????????????????????????????(?????????)????????д10????ε??У????????????????????????????С??????????????????????????????????????С?

??????????????

???????XML??XML????????????????????XML???????????10?е??????100?С???????????????????XML??(?ο?????XML??????????XML??????)

????????C?????????μ?????????????????Щ?????????????????Щ??

??????ò???????????磺10 ??010??????????????磺array = new int[]{ 111?? 120?? 013?? 121??};

???????????void*??????????????????

????????????????C++????????????????????????????????

??????????????????磺?? a==100?????a>99 && a<101

??????????÷????磺if ( a );else;{ int d; d = c;}

????????????磺??double?string??д??new Double(d).toString() ?????? Double.toString(d)

??????????????????NB??????????????д???????ó???10???С????()???????????????????ó???20?????????{}????????if else ??? [? :] ????????NB?????