Effective in Java ±Ê¼Ç
1¡¢Óþ²Ì¬¹¤³§·½·¨´úÌæ¹¹Ô캯Êý
Óŵ㣺
Óë¹¹Ô캯Êý²»Í¬£¬¾²Ì¬¹¤³§·½·¨¾ßÓÐÃû×Ö£¨±íÒâºÃ£©¡£
ÿ´Î±»µ÷ÓÃʱ£¬²»ÒªÇó·ÇµÃ´´½¨Ò»¸öеĶÔÏó¡£
¿ÉÒÔ·µ»ØÒ»¸öÔ·µ»ØÀàÐ͵Ä×ÓÀàÐͶÔÏó¡£
ȱµã£º
ÀàÈç¹û²»º¬Óй«ÓеĻòÊܱ£»¤µÄ¹¹Ô캯Êý£¬¾Í²»Äܱ»×ÓÀ໯¡£
ËüÃÇÓÚÆäËûµÄ¾²Ì¬·½·¨Ã»ÓÐÈκÎÇø±ð£¨Ò×»ìÏý£©
Ïà¹ØÎĵµ£º
Javaѧϰ´ÓÈëÃŵ½¾«Í¨
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......
±¾ÌùÕª×Ô http://bbs.langsin.com/redirect.php?tid=9936&goto=lastpost
Ïë´òÓ¡Ò»¸öString ±äÁ¿µÄµØÖ·£¬ÇëÎÊÈçºÎÀ´Ð´£¿
²»ÊÇhashcode£¬¾ÍÊÇÄÚ´æµØÖ·£¬¶øÇÒÒª´òÓ¡³öÀ´¡£
Ò²Ðí±È½Ï¼òµ¥£¬²»¹ýÎÒûд³öÀ´¡£
----------------------------------------------------------------------------------------
ʹÓÃSyst ......
ΪÁËÀí½âjavaµÄclone£¬ÓбØÒªÏÈÎÂÏ°ÒÔϵÄ֪ʶ¡£
javaµÄÀàÐÍ£¬javaµÄÀàÐÍ·ÖΪÁ½´óÀ࣬һÀàΪprimitive£¬Èçint£¬ÁíÒ»ÀàΪÒýÓÃÀàÐÍ,ÈçString,ObjectµÈµÈ¡£
javaÒýÓÃÀàÐ͵Ĵ洢£¬javaµÄÒýÓÃÀàÐͶ¼ÊÇ´æ´¢ÔÚ¶ÑÉϵġ£
public class B {
int a;
String b;
public B(int a, String b) { ......
javaµÚÒ»²½——JDK»·¾³±äÁ¿ÅäÖÃ
ÏÂÔغõÄJDKÊÇÒ»¸ö¿ÉÖ´Ðа²×°³ÌÐò£¬Ë«»÷°²×°¡£½«°²×°Â·¾¶¸ÄΪ£ºC:\jdk1.6.0£¨µ±È»ÆäËû·¾¶Ò²¿ÉÒÔ£©¡£
JDK°²×°Íê³ÉÖ®ºóÎÒÃÇÀ´ÉèÖû·¾³±äÁ¿£º
ÎҵĵçÄÔµãÓÒ¼ü£¬Ñ¡Ôñ“ÊôÐÔ”£¬Ñ¡Ôñ“¸ß¼¶”±êÇ©£¬½øÈë»·¾³±äÁ¿ÉèÖ㬷ֱðÉèÖÃÈçÏÂÈý¸ö»·¾³±äÁ¿£º
£¨1£©É ......
ÓÃjava¿ª·¢Óʼþ½ÓÊÕ³ÌÐòÐèÒªÓõ½javamail°ü£¬×ÊÔ´µØÖ·£ºhttp://java.sun.com/products/javamail/£¬×îаæÊÇ JavaMail 1.4.3 £¬ÏÂÔصØÖ·ÊÇ£ºhttp://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/javamail-1.4.3.zip?BundledLineItemUUID=gqFIBe.oRjUAAAEl1r4 ......