JAVA´úÂëÓÅ»¯
ͨ¹ýʹÓÃһЩ¸¨ÖúÐÔ¹¤¾ßÀ´ÕÒµ½³ÌÐòÖеÄÆ¿¾±£¬È»ºó¾Í¿ÉÒÔ¶ÔÆ¿¾±²¿·ÖµÄ´úÂë½øÐÐÓÅ»¯¡£Ò»°ãÓÐÁ½ÖÖ·½°¸£º¼´ÓÅ»¯´úÂë»ò¸ü¸ÄÉè¼Æ·½·¨¡£ÎÒÃÇÒ»°ã»áÑ¡ÔñºóÕߣ¬ÒòΪ²»È¥µ÷ÓÃÒÔÏ´úÂëÒª±Èµ÷ÓÃһЩÓÅ»¯µÄ´úÂë¸üÄÜÌá¸ß³ÌÐòµÄÐÔÄÜ¡£¶øÒ»¸öÉè¼ÆÁ¼ºÃµÄ³ÌÐòÄܹ»¾«¼ò´úÂ룬´Ó¶øÌá¸ßÐÔÄÜ¡£
ÏÂÃ潫ÌṩһЩÔÚJAVA³ÌÐòµÄÉè¼ÆºÍ±àÂëÖУ¬ÎªÁËÄܹ»Ìá¸ßJAVA³ÌÐòµÄÐÔÄÜ£¬¶ø¾³£²ÉÓõÄһЩ·½·¨ºÍ¼¼ÇÉ¡£
1£®¶ÔÏóµÄÉú³ÉºÍ´óСµÄµ÷Õû¡£
JAVA³ÌÐòÉè¼ÆÖÐÒ»¸öÆÕ±éµÄÎÊÌâ¾ÍÊÇûÓкúõÄÀûÓÃJAVAÓïÑÔ±¾ÉíÌṩµÄº¯Êý£¬´Ó¶ø³£³£»áÉú³É´óÁ¿µÄ¶ÔÏ󣨻òʵÀý£©¡£ÓÉÓÚϵͳ²»½öÒª»¨Ê±¼äÉú³É¶ÔÏó£¬ÒÔºó¿ÉÄÜ»¹Ð軨ʱ¼ä¶ÔÕâЩ¶ÔÏó½øÐÐÀ¬»ø»ØÊպʹ¦Àí¡£Òò´Ë£¬Éú³É¹ý¶àµÄ¶ÔÏ󽫻á¸ø³ÌÐòµÄÐÔÄÜ´øÀ´ºÜ´óµÄÓ°Ïì¡£
Àý1£º¹ØÓÚString ,StringBuffer£¬+ºÍappend
JAVAÓïÑÔÌṩÁ˶ÔÓÚStringÀàÐͱäÁ¿µÄ²Ù×÷¡£µ«Èç¹ûʹÓò»µ±£¬»á¸ø³ÌÐòµÄÐÔÄÜ´øÀ´Ó°Ïì¡£ÈçÏÂÃæµÄÓï¾ä£º
String name=new String("HuangWeiFeng");
System.out.println(name+"is my name");
¿´ËÆÒѾºÜ¾«¼òÁË£¬Æäʵ²¢·ÇÈç´Ë¡£ÎªÁËÉú³É¶þ½øÖƵĴúÂ룬Ҫ½øÐÐÈçϵIJ½ÖèºÍ²Ù×÷£º
(1) Éú³ÉеÄ×Ö·û´® new String£¨STR_1);
(2) ¸´ÖƸÃ×Ö·û´®;
(3) ¼ÓÔØ×Ö·û´®³£Á¿"HuangWeiFeng"£¨STR_2);
(4) µ÷ÓÃ×Ö·û´®µÄ¹¹¼ÜÆ÷£¨Constructor£©;
(5) ±£´æ¸Ã×Ö·û´®µ½Êý×éÖУ¨´ÓλÖÃ0¿ªÊ¼£©;
(6) ´Ójava.io.PrintStreamÀàÖеõ½¾²Ì¬µÄout±äÁ¿;
(7) Éú³ÉеÄ×Ö·û´®»º³å±äÁ¿new StringBuffer(STR_BUF_1);
(8) ¸´ÖƸÃ×Ö·û´®»º³å±äÁ¿;
(9) µ÷ÓÃ×Ö·û´®»º³åµÄ¹¹¼ÜÆ÷£¨Constructor£©;
(10) ±£´æ¸Ã×Ö·û´®»º³åµ½Êý×éÖУ¨´ÓλÖÃ1¿ªÊ¼£©;
(11) ÒÔSTR_1Ϊ²ÎÊý£¬µ÷ÓÃ×Ö·û´®»º³å(StringBuffer)ÀàÖеÄappend·½·¨;
(12) ¼ÓÔØ×Ö·û´®³£Á¿"is my name"(STR_3);
(13) ÒÔSTR_3Ϊ²ÎÊý£¬µ÷ÓÃ×Ö·û´®»º³å(StringBuffer)ÀàÖеÄappend·½·¨;
(14) ¶ÔÓÚSTR_BUF_1Ö´ÐÐtoStringÃüÁî;
(15) µ÷ÓÃout±äÁ¿ÖеÄprintln·½·¨£¬Êä³ö½á¹û¡£
ÓÉ´Ë¿ÉÒÔ¿´³ö£¬ÕâÁ½Ðмòµ¥µÄ´úÂ룬¾ÍÉú³ÉÁËSTR_1,STR_2,STR_3,STR_4ºÍSTR_BUF_1Îå¸ö¶ÔÏó±äÁ¿¡£ÕâЩÉú³ÉµÄÀàµÄʵÀýÒ»°ã¶¼´æ·ÅÔÚ¶ÑÖС£¶ÑÒª¶ÔËùÓÐÀàµÄ³¬À࣬ÀàµÄʵÀý½øÐгõʼ»¯£¬Í¬Ê±»¹Òªµ÷ÓÃÀ༫Æäÿ¸ö³¬ÀàµÄ¹¹¼ÜÆ÷¡£¶øÕâЩ²Ù×÷¶¼ÊǷdz£ÏûºÄϵͳ×ÊÔ´µÄ¡£Òò´Ë£¬¶Ô¶ÔÏóµÄÉú³É½øÐÐÏÞÖÆ£¬ÊÇÍêÈ«ÓбØÒªµÄ¡£
¾Ð޸ģ¬ÉÏÃæµÄ´úÂë¿ÉÒÔÓÃÈçϵĴúÂëÀ´Ìæ»»¡£
StringBuffer name=new StringBuffer("HuangWeiFeng");
System.out.println(name.append("is my name.
Ïà¹ØÎĵµ£º
BlockingQueueÊÇÒ»¸ö½Ó¿Ú£¬Ëü´ÓQueue¼Ì³Ð¶øÀ´£¬
°üº¬ÁËQueueµÄËùÓй¦ÄÜ£¬²¢ÔÚQueueµÄ»ù´¡ÉÏÌṩÁË2¸öÐµĹ¦ÄÜ£º
1. ¼ìË÷ÔªËØʱµÈ´ý¶ÓÁбäΪ·Ç¿Õ
2. ´æ´¢ÔªËØʱµÈ´ý¿Õ¼ä±äµÃ¿ÉÓá£
ÏÂÃæ³Â¼Ò»Ð©JDKÎĵµÖйØÓÚBlockingQueueµÄ½éÉÜ£º
BlockingQueue ¿ÉÒÔÊÇÏÞ¶¨ÈÝÁ¿µÄ¡£ËüÔ ......
ÎÒ½ñÌìѧϰÁËÐìÀÏʦ½«µÄhibernate¿ò¼Ü֪ʶ£¬ÎÒ×öÁ˼òµ¥µÄ±Ê¼Ç£º
¼¯ºÏÊôÐÔ´óÖ·ÖΪ¶þÖÖ£º
µ¥´¿µÄ¼¯ºÏÊôÐÔ£¬ÏñList,Set»òÊý×éµÈ¼¯ºÏÊôÐÔ¡£
2,Map¼¯ºÏÊôÐÔ£¬Ã¿¸öÊôÐÔÖµ¶àÓÐÏà¶ÔÓ¦µÄKeyÓ³Éä¡£
&nb ......
1.´´½¨Ïß³Ì
·½Ê½Ò»£ºÍ¨¹ýThreadµÄ×ÓÀà´´½¨£¬´ËʱÐèÒªÔÚThreadÀàµÄ×ÓÀàÖÐÖØд¸¸ÀàµÄpublic void run()·½·¨
·½Ê½¶þ£ºÖ±½ÓʹÓÃThreadÀà´´½¨
  ......
ÎÒ½ñÌìѧϰÁËÐìÀÏʦ½²µÄjpa£¬ÎÒ×öÁ˼òµ¥µÄ±Ê¼Ç£º
JPA(Java Persistence API)ÊÇSun¹Ù·½Ìá³öµÄJava³Ö¾Ã»¯¹æ·¶¡£ËüΪJava¿ª·¢ÈËÔ±ÌṩÁËÒ»ÖÖ¶ÔÏó/¹ØϵӳÉ乤¾ßÀ´¹ÜÀíJavaÓ¦ÓÃÖеĹØϵÊý¾Ý¡£ËûµÄ³öÏÖÖ÷ÒªÊÇΪÁ˼ò»¯ÏÖÓеij־û¯¿ª·¢¹¤×÷ºÍÕûºÏORM¼¼Êõ£¬½áÊøÏÖÔÚHibernate¡¢TopLinkµÈORM¿ò¼Ü¸÷×ÔΪӪµÄ¾ÖÃæ¡£ÖµµÃ×¢ÒâµÄÊÇ£¬JP ......