java ¼¯ºÏ—— ×ܽá1£¨²¿·ÖÐèÒª¼ÌÐøÍêÉÆ£©
£¨1£©À༯µÄ²úÉúÄ¿µÄ
À༯¼òµ¥À´½²¾ÍÊÇÒ»¸ö¶¯Ì¬µÄ¶ÔÏóÊý×飬´Ë¶ÔÏóÊý×é¿ÉÒԸıä´óС£¬¿ÉÒÔÈÎÒâµÄʵÏÖ¶ÔÏóµÄÔö¼Ó¡¢É¾³ý¡¢Êä³ö¡£ËùÓеÄÀ༯´æ·Åjava.util°üÖС£
£¨2£©À༯µÄ»®·Ö
1¡¢´æ·Åµ¥Öµ£ºCollection
2¡¢´æ·ÅÒ»¶ÔÖµ£ºMap
3¡¢Êä³ö£ºIterator
Collection£¨´æ·Åµ¥Öµ£©
©ÀList
©¦©ÀLinkedList
©¦©ÀArrayList
©¦©¸Vector
©¦¡¡©¸Stack
©¸Set
Map £¨´æ·ÅÒ»¶ÔÖµ£©
©ÀHashtable
©ÀHashMap
©¸WeakHashMap
1) Collection£ºÊÇ×î»ù±¾µÄ¼¯ºÏ½Ó¿Ú£¬Ò»¸öCollection´ú±íÒ»×éObject£¬¼´CollectionµÄÔªËØ£¨Elements£©¡£
2) List ½Ó¿Ú£º ListÊÇÓÐÐòµÄCollection£¬Ê¹Óô˽ӿÚÄܹ»¾«È·µÄ¿ØÖÆÿ¸öÔªËزåÈëµÄλÖá£ListÔÊÐíÓÐÖظ´ÔªËØ¡£
3) set½Ó¿Ú£ºSetÊÇÒ»ÖÖ²»°üº¬Öظ´µÄÔªËصÄCollection¡£
4£©×ÓÀà: ArrayList£ºÊµÏÖÁ˿ɱä´óСµÄÊý×é¡£ËüÔÊÐíËùÓÐÔªËØ£¬°üÀ¨null¡£ArrayListûÓÐͬ²½¡£(Òì²½´¦Àí·½Ê½)
5£©×ÓÀࣺVector: ÊÇʹÓÃͬ²½´¦Àí·½Ê½£¬ÆäḬ̈߳²È«ÐԽϸߣ¬»á±È½ÏÂý.
6£©×ÓÀࣺStack¼Ì³Ð×ÔVector£¬ÊµÏÖÒ»¸öºó½øÏȳöµÄ¶ÑÕ»¡£
7) Map½Ó¿Ú µÄ¹¦ÄÜ£ºÓëCollectionµÄ¹¦Äܲ»Ò»Ñù£¬MapµÄÖ÷Òª¹¦ÄÜÊÇÓÃÓÚ²éÕÒʹÓõġ£MapûÓм̳ÐCollection½Ó¿Ú£¬MapÌṩkeyµ½valueµÄÓ³Éä¡£
8) ×ÓÀࣺ HashMap£ºÎÞÐò´æ·Å£¬ÊÇеÄÀ࣬ÊÇJDK 1.2ʱÍƳöµÄ£¬ÊÇÒì²½´¦Àí£¬ÐÔÄܽϸß
9) ×ÓÀࣺHashtable£ºÊǾɵÄÀ࣬ÊÇJDK 1.0ʱÍƳöµÄ£¬ÊÇḬ̈߳²È«µÄ£¬ÐÔÄܽϵÍ
10£©×ÓÀࣺWeakHashMapÊÇÒ»ÖָĽøµÄHashMap£¬Ëü¶ÔkeyʵÐГÈõÒýÓÔ£¬Èç¹ûÒ»¸ökey²»ÔÙ±»ÍⲿËùÒýÓã¬ÄÇô¸Ãkey¿ÉÒÔ±»GC»ØÊÕ¡£
±¾ÎIJο¼ÁË£ºhttp://redking.blog.51cto.com/27212/139782
Ïà¹ØÎĵµ£º
À´×Ô£ºhttp://www.anymobile.org
1¡¢ÕªÒª..........................................................................1
2¡¢¸ÄÉÆ·þÎñÆ÷µÄÐÔÄÜ...........................................................1
3¡¢·ÖÎöÆ÷ÔÀí...................................................................2
4¡¢JProfiler ¼ò½é... ......
1 ×÷ÓÃÓò
javaÖÐ×÷ÓÃÓòµÄ·¶Î§ÓÉ»¨À¨ºÅ±êʾ¡£
2¹ØÓÚstatic
À¬»øÊÕ¼¯Æ÷Ö»ÖªµÀËѼ¯ÄÇЩÓÐnewÔËËã·û·ÖÅäµÄÄڴ棬²»ÖªµÀÈçºÎÊÍ·ÅÌØÊâÄÚ´æ¡£
Èç¹ûÀ¬»øÊÕ¼¯Æ÷×¼±¸»ØÊÕ¶ÔÏóµÄÄڴ棬ËüÊ×Ïȵ÷ÓÃfinalize()£¬¶øÇÒÖ»ÓÐÔÚÏÂÒ»´ÎÀ¬»øËѼ¯¹ý³ÌÖУ¬²Å»áÕæÕý»ØÊÕ¶ÔÏóµÄÄÚ´æ¡£ËùÒÔ˵Èç¹ûʹÓÃ
final ......
http://iccyx.cn/2007/04/21/java-console-text-area-input-stream/
ÍêÕûÇë¿´ÉÏURL
2001 Äê 10 ÔÂ 16 ÈÕ
ÔÚJava¿ª·¢ÖУ¬¿ØÖÆ̨Êä³öÈÔÊÇÒ»¸öÖØÒªµÄ¹¤¾ß£¬µ«Ä¬ÈϵĿØÖÆ̨Êä³öÓÐן÷ÖÖ¸÷ÑùµÄ¾ÖÏÞ¡£±¾ÎĽéÉÜÈçºÎÓÃJava¹ÜµÀÁ÷½ØÈ¡¿ØÖÆ̨Êä³ö£¬·ÖÎö¹ÜµÀÁ÷Ó¦ÓÃÖÐÓ¦¸Ã×¢ÒâµÄÎÊÌ⣬ÌṩÁ˽ØÈ¡Java³ÌÐòºÍ·ÇJava³ÌÐò¿ØÖÆ̨Êä³öµÄÊ ......
ÔÎÄÁ´½Ó£ºhttp://java.csdn.net/index.php/2009/09/01/java%e5%bc%80%e5%8f%91%e8%80%85%e6%9c%80%e5%b8%b8%e5%8e%bb%e7%9a%8420%e4%b8%aa%e8%8b%b1%e6%96%87%e7%bd%91%e7%ab%99/
JAVA¿ª·¢Õß×ȥµÄ20¸öÓ¢ÎÄÍøÕ¾
1.[http://www.javaalmanac.com] – Java¿ª·¢ÕßÄê¼øÒ»ÊéµÄÔÚÏß°æ±¾. ÒªÏë¿ìËٲ鵽ijÖÖJava¼¼ÇɵÄÓ÷¨ ......
Thread-Per-Message PatternµÄ²ÎÓëÕߣº
1. Client£¨Î¯ÍÐÈË£©²ÎÓëÕß
Client²ÎÓëÕß»á¶ÔHost²ÎÓëÕß·¢³öÇëÇó¡£Client²ÎÓëÕß²¢²»ÖªµÀHost²ÎÓëÕß»áÈçºÎʵÏÖÕâ¸öÇëÇó¡£
2. Host²ÎÓëÕß
µ±Host²ÎÓëÕß½ÓÊÕµ½Client²ÎÓëÕßµÄÇëÇóʱ£¬»á½¨Á¢ÐµÄÏ̲߳¢Æô¶¯Ëü¡£
Õâ¸öеÄÏ ......