JAVaÃæÊÔÌâ1
Java»ù´¡·½Ãæ:
1¡¢×÷ÓÃÓòpublic,private,protected,ÒÔ¼°²»Ð´Ê±µÄÇø±ð
´ð£ºÇø±ðÈçÏ£º
×÷ÓÃÓò µ±Ç°Àà ͬһpackage ×ÓËïÀà ÆäËûpackage
public √ √ √ √
protected √ √ √ ×
friendly √ √ × ×
private √ × × ×
²»Ð´Ê±Ä¬ÈÏΪfriendly
2¡¢Anonymous Inner Class (ÄäÃûÄÚ²¿Àà) ÊÇ·ñ¿ÉÒÔextends(¼Ì³Ð)ÆäËüÀ࣬ÊÇ·ñ¿ÉÒÔimplements(ʵÏÖ)interface(½Ó¿Ú)
´ð£ºÄäÃûµÄÄÚ²¿ÀàÊÇûÓÐÃû×ÖµÄÄÚ²¿Àà¡£²»ÄÜextends(¼Ì³Ð) ÆäËüÀ࣬µ«Ò»¸öÄÚ²¿Àà¿É
Ïà¹ØÎĵµ£º
ÏîÄ¿¾ÀíµÄÖ°Ôð£º
1¡¢»ù±¾Ö°Ôð¾ÍÊÇÈ·±£ÏîÄ¿Ä¿±êµÄʵÏÖ£¬Áìµ¼ÏîÄ¿ÍŶÓ׼ʱ¡¢ÓÅÖʵØÍê³ÉÈ«²¿¹¤×÷¡£
2¡¢Óë¿Í»§¹µÍ¨£¬Á˽âÏîÄ¿µÄÕûÌåÐèÇó¡£²¢Óë¿Í»§±£³ÖÒ»¶¨µÄÁªÏµ£¬¼°Ê±·´À¡½×¶ÎÐԳɹû£¬¼°Ê±¸ü¸Ä¿Í»§Ìá³öµÄºÏÀíÐèÇó¡£
3¡¢Öƶ¨ÏîÄ¿¿ª·¢¼Æ»®Îĵµ£¬Á¿»¯ÈÎÎñ£¬²¢ºÏÀí·ÖÅä¸øÏà¹ØÈËÔ±¡£
4¡¢¸ú×ÙÏîÄ¿½ø¶È£¬Ðµ÷ÏîÄ¿×é³ÉÔ±Ö®¼äµÄºÏ ......
1.Èç¹ûÔÚÏÂÃæµÄ´úÂëÖУ¬tryLock¸Ä³Élock£¬ÄÇô»áÒ»Ö±µÈ´ý£¬Ö±µ½Äܹ»ËøÉÏÎļþΪֹ£¬µ«tryLock»áÁ¢¼´·µ»Ø¡£
Èç¹ûÒ»¸öµ÷ÓÃÁËtryLock£¬»òlock²¢Çҳɹ¦ËøÉÏÖ¸¶¨ÎļþºóµÄ³ÌÐò£¬ÔÚûÓÐÊÍ·ÅÎļþËøµÄÇé¿öÏ£¨Ã»Óе÷ÓÃrelease£©³ÌÐò¾Í½áÊø£¨°üº¬Ç¿ÖƽáÊøµÄÇé¿ö£©£¬ÄÇôÎļþËø»á×Ô¶¯±»ÊÍ·Å¡£
2.´úÂëÖеÄsleepÊÇΪÁ˱ãÓÚÑéÖ¤³ÌÐòÓõġ ......
http://developer.51cto.com/art/201001/180400.htm
ÎÄÀ´×ÔCSDN²©¿Í£¬ÔÎıêÌâΪ¡¶Hibernate Ö®¸¸£ºÊÇʱºòÉý¼¶µ½Java EE 6ÁË¡·¡£
Hibernate Ö®¸¸Gavin King½¨Ò鿪·¢ÕßÉý¼¶µ½ Java EE 6 ƽ̨£¬²¢Ö¸³ö£¬Ä¿Ç°¸÷ÖÖ²»Ô¸ÒâÉý¼¶µÄ¹ÛµãÆäʵÊÇûÓиù¾ÝµÄ¡£
Java EE 6 ·¢²¼ºó£¬ÎÒ¿´µ½Á˺ܶ෴¶ÔÉý¼¶µ½ÐÂƽ̨µÄ¹Ûµã¡£ÕâЩ·´¶Ô¹Ûµã´ó ......
´Ó5ÔÂ5ºÅ½øÈë¾ÍÒµ°àµ½ÏÖÔÚËÄÌìµÄʱ¼äÁË£¬ÉÏÁËÕ⼸Ìì¿Î·¢ÏÖ¾ÍÒµ°àµÄÇ¿¶ÈÕæµÄºÜ´ó£¬²»ÏñÒÔÇ°»ù´¡°àµÄʱºòÄÇô»¹±È½ÏÇáËÉ£¬ÒѾ½¥½¥¸Ð¾õµ½Á˳ÔÁ¦£¬ÒòΪÏÖÔÚÉÏ¿ÎÐèÒª½²½âµÄ֪ʶµãÌ«¶à£¬ÓÐʱºòÏÂÎçÀÏʦ½²µ½6µã¶àÖÓ²ÅÏ¿Σ¬¿ÎÉϵÄÁ·Ï°Ê±¼äÔ½À´Ô½ÉÙÁË£¬Ö»ÄÜ×Ô¼ºÀûÓÿκóµÄʱ¼ä¶àÁ·Ï°Êµ¼ù£¬Ðí¶à¶«Î÷»¹¶¼ÊǵÚÒ»´Î ......
½üÆÚµÄÒ»¸öÏîÄ¿ÐèҪʵÏÖÉãÏñͷͼÏñ²É¼¯£¬¾¹ýһϵÁеÄÕÛÌÚÒÔºó£¬ÖÕÓÚʵÏÖÁËÕâ¸ö¹¦ÄÜ£¬ÏÖÕûÀíһϡ£
±¾Éí¾Íjava¼¼ÊõÀ´Ëµ£¬ÒªÊµÏÖÉãÏñÍ·¶þ´Î¿ª·¢£¬²É¼¯ÉãÏñͷͼƬ£¬ÐèҪʹÓõ½JMF£¬JMFÊʺÏʹÓÃÔÚj2se³ÌÐòµ±ÖУ¬ÎÒÐèÒªÔÚweb³ÌÐòÖе÷ÓÃÉãÏñÍ·£¬ºÜÃ÷ÏÔJMFÊǸ㲻¶¨ÁË£¬Ïë¹ýдһ¸öapplet³ÌÐò£¬Ö»ÊÇÄǶ«Î÷ÒªÇó¿Í»§¶Ë±ØÐëÒªÓÐjre»·¾ ......