µÚÈýƪ£ºJAVA×Ö·û±àÂëϵÁÐÈý£ºJavaÓ¦ÓÃÖеıàÂëÎÊÌâ
1. ¸ÅÊö
±¾ÎÄÖ÷Òª°üÀ¨ÒÔϼ¸¸ö·½Ã棺±àÂë»ù±¾ÖªÊ¶£¬java£¬ÏµÍ³Èí¼þ£¬url£¬¹¤¾ßÈí¼þµÈ¡£
ÔÚÏÂÃæµÄÃèÊöÖУ¬½«ÒÔ"ÖÐÎÄ"Á½¸ö×ÖΪÀý£¬¾²é±í¿ÉÒÔÖªµÀÆäGB2312±àÂëÊÇ"d6d0 cec4"£¬Unicode±àÂëΪ"4e2d 6587"£¬UTF±àÂë¾ÍÊÇ"e4b8ad e69687"¡£×¢Ò⣬ÕâÁ½¸ö×ÖûÓÐiso8859-1±àÂ룬µ«¿ÉÒÔÓÃiso8859-1±àÂëÀ´"±íʾ"¡£
2. ±àÂë»ù±¾ÖªÊ¶
×îÔçµÄ±àÂëÊÇiso8859-1£¬ºÍascii±àÂëÏàËÆ¡£µ«ÎªÁË·½±ã±íʾ¸÷ÖÖ¸÷ÑùµÄÓïÑÔ£¬Öð½¥³öÏÖÁ˺ܶà±ê×¼±àÂ룬ÖØÒªµÄÓÐÈçϼ¸¸ö¡£
2.1. iso8859-1
ÊôÓÚµ¥×Ö½Ú±àÂ룬×î¶àÄܱíʾµÄ×Ö·û·¶Î§ÊÇ0-255£¬Ó¦ÓÃÓÚÓ¢ÎÄϵÁС£±ÈÈ磬×Öĸ'a'µÄ±àÂëΪ0x61=97¡£
ºÜÃ÷ÏÔ£¬iso8859-1±àÂë±íʾµÄ×Ö·û·¶Î§ºÜÕ£¬ÎÞ·¨±íʾÖÐÎÄ×Ö·û¡£µ«ÊÇ£¬ÓÉÓÚÊǵ¥×Ö½Ú±àÂ룬ºÍ¼ÆËã»ú×î»ù´¡µÄ±íʾµ¥Î»Ò»Ö£¬ËùÒԺܶàʱºò£¬ÈÔ¾ÉʹÓÃiso8859-1±àÂëÀ´±íʾ¡£¶øÇÒÔںܶàÐÒéÉÏ£¬Ä¬ÈÏʹÓøñàÂë¡£±ÈÈ磬ËäÈ»"ÖÐÎÄ"Á½¸ö×Ö²»´æÔÚiso8859-1±àÂ룬ÒÔgb2312±àÂëΪÀý£¬Ó¦¸ÃÊÇ"d6d0 cec4"Á½¸ö×Ö·û£¬Ê¹ÓÃiso8859-1±àÂëµÄʱºòÔò½«Ëü²ð¿ªÎª4¸ö×Ö½ÚÀ´±íʾ£º"d6 d0 ce c4"£¨ÊÂʵÉÏ£¬ÔÚ½øÐд洢µÄʱºò£¬Ò²ÊÇÒÔ×Ö½ÚΪµ¥Î»´¦ÀíµÄ£©¡£¶øÈç¹ûÊÇUTF±àÂ룬ÔòÊÇ6¸ö×Ö½Ú"e4 b8 ad e6 96 87"¡£ºÜÃ÷ÏÔ£¬ÕâÖÖ±íʾ·½·¨»¹ÐèÒªÒÔÁíÒ»ÖÖ±àÂëΪ»ù´¡¡£
2.2. GB2312/GBK
Õâ¾ÍÊǺº×ӵĹú±êÂ룬רÃÅÓÃÀ´±íʾºº×Ö£¬ÊÇË«×Ö½Ú±àÂ룬¶øÓ¢ÎÄ×ÖĸºÍiso8859-1Ò»Ö£¨¼æÈÝiso8859-1±àÂ룩¡£ÆäÖÐgbk±àÂëÄܹ»ÓÃÀ´Í¬Ê±±íʾ·±Ìå×ֺͼòÌå×Ö£¬¶øgb2312Ö»Äܱíʾ¼òÌå×Ö£¬gbkÊǼæÈÝgb2312±àÂëµÄ¡£
2.3. unicode
ÕâÊÇ×îͳһµÄ±àÂ룬¿ÉÒÔÓÃÀ´±íʾËùÓÐÓïÑÔµÄ×Ö·û£¬¶øÇÒÊǶ¨³¤Ë«×Ö½Ú£¨Ò²ÓÐËÄ×ֽڵģ©±àÂ룬°üÀ¨Ó¢ÎÄ×ÖĸÔÚÄÚ¡£ËùÒÔ¿ÉÒÔ˵ËüÊDz»¼æÈÝiso8859-1±àÂëµÄ£¬Ò²²»¼æÈÝÈκαàÂë¡£²»¹ý£¬Ïà¶ÔÓÚiso8859-1±àÂëÀ´Ëµ£¬uniocode±àÂëÖ»ÊÇÔÚÇ°ÃæÔö¼ÓÁËÒ»¸ö0×Ö½Ú£¬±ÈÈç×Öĸ'a'Ϊ"00 61"¡£
ÐèҪ˵Ã÷µÄÊÇ£¬¶¨³¤±àÂë±ãÓÚ¼ÆËã»ú´¦Àí£¨×¢ÒâGB2312/GBK²»ÊǶ¨³¤±àÂ룩£¬¶øunicodeÓÖ¿ÉÒÔÓÃÀ´±íʾËùÓÐ×Ö·û£¬ËùÒÔÔںܶàÈí¼þÄÚ²¿ÊÇʹÓÃunicode±àÂëÀ´´¦ÀíµÄ£¬±ÈÈçjava¡£
2.4. UTF
¿¼Âǵ½unicode±àÂë²»¼æÈÝiso8859-1±àÂ룬¶øÇÒÈÝÒ×Õ¼Óøü¶àµÄ¿Õ¼ä£ºÒòΪ¶ÔÓÚÓ¢ÎÄ×Öĸ£¬unicodeÒ²ÐèÒªÁ½¸ö×Ö½ÚÀ´±íʾ¡£ËùÒÔunicode²»±ãÓÚ´«ÊäºÍ´æ´¢¡£Òò´Ë¶ø²úÉúÁËutf±àÂ룬utf±àÂë¼æÈÝiso8859-1±àÂ룬ͬʱҲ¿ÉÒÔÓÃÀ´±íʾËùÓÐÓïÑÔµÄ×Ö·û£¬²»¹ý£¬utf±àÂëÊDz»¶¨³¤±àÂ룬ÿһ¸ö×Ö·ûµÄ³¤¶È´Ó1-6¸ö×Ö½Ú²»µÈ¡£ÁíÍ⣬utf±àÂë×Ô´ø¼òµ¥µÄУÑ鹦ÄÜ¡£Ò»°ãÀ´½²£¬Ó¢ÎÄ×ÖÄ
Ïà¹ØÎĵµ£º
JDK1.5ÖеÄÏ̳߳Ø(java.util.concurrent.ThreadPoolExecut
6
ÍƼö
ÔÚ¶àÏ̴߳óʦDoug LeaµÄ¹±Ï×Ï£¬ÔÚJDK1.5ÖмÓÈëÁËÐí¶à¶Ô²¢·¢ÌØÐÔµÄÖ§³Ö£¬ÀýÈ磺Ï̳߳ء£
Ò»¡¢¼ò½é
Ï̳߳ØÀàΪ java.util.concurrent.ThreadPoolExecutor£¬³£Óù¹Ôì·½·¨Îª£º
ThreadPoolExecutor(int corePoolSize, int maximumPoolSize,
long keepA ......
1£©¹Ù·½ÍøÕ¾
ÔÚѧϰһ¸ö¼¼ÊõÇ°Ö±µ½¹Ù·½ÍøÕ¾ÊǼ«Îª±ØÒªµÄ£¬¹Ù·½ÍøÕ¾²»µ«Ìṩ°²×°½éÖÊ£¬¶øÇÒÓÐÒ»Êֵļ¼Êõ²Î¿¼×ÊÁÏ¡£Ïл°¼ò˵ http://www.springsource.com/¡£ ÒÔÇ°ÔøÓùýspringframework.org£¬²»ÖªµÀΪʲôҪ¸ÄÁËÃû×Ö¡£
2£©¾µä²Î¿¼Êé
ÓÐÈËÍƼö¹ýSpring In Action£¬ ÎÒ×Ô¼ºÊÇ´ÓSpring Reference¿ªÊ¼¶ÁµÄ¡£
3£©Á÷Ðеİ汾
......
¶þ¡¢JavaÀ¬»ø»ØÊÕ
1. JVMÔËÐл·¾³ÖÐÀ¬»ø¶ÔÏóµÄ¶¨Òå
Ò»¸ö¶ÔÏó´´½¨ºó±»·ÅÖÃÔÚJVMµÄ¶ÑÄÚ´æÖУ¬µ±ÓÀÔ¶²»ÔÙÒýÓÃÕâ¸ö¶ÔÏóʱ£¬Ëü½«±»JVMÔÚ¶ÑÄÚ´æÖлØÊÕ¡£»ò µ±¶ÔÏóÔÚJVMÔËÐпռäÖÐÎÞ·¨Í¨¹ý¸ù¼¯ºÏ(root set)µ½´ïʱ£¬Õâ¸ö¶ÔÏó¾Í±»³ÆΪÀ¬»ø¶ÔÏó¡£
2. ¶ÑÄÚ´æ
* ÔÚJVMÆô¶¯Ê±±»´´½¨£»¶ÑÄÚ´æÖÐËù´æ´¢µ ......
Ê×ÏÈboolean²»ÄܸúÆäËûÀàÐÍת»»¡£
1.¸³ÖµÊ±£º
ÕûÊýĬÈϵÄÊÇint ¸¡µãĬÈÏÊÇdouble£¬¼´ÕûÐ͵ȺÅÓÒ²àÈ«²¿×Ô¶¯×ª»¯Îªint£¬¸¡µãÐ͵ȺÅÓÒ²à×Ô¶¯×ª»»Îªdouble¡£µ±´óÈÝÁ¿µÄÊý¾ÝÀàÐ͸³Öµ¸øСÈÝÁ¿µÄÊý¾ÝÀàÐÍʱ ÐèҪǿÖÆÀàÐÍת»»µ«ÊÇÓÐ ......