É÷ÓÃJava×°ÏäÓë²ðÏä
ת×Ôhttp://xyiyy.javaeye.com/blog/358401
J2SE5.0ºóÌṩÁË×Ô¶¯×°ÏäÓë²ðÏäµÄ¹¦ÄÜ£¬´Ë¹¦ÄÜÊÂʵÉÏÊDZàÒëÆ÷À´°ïÄúµÄ棬±àÒëÆ÷ÔÚ±àÒëʱÆÚÒÀÄúËù±àдµÄ·½·¨£¬¾ö¶¨ÊÇ·ñ½øÐÐ×°Ïä»ò²ðÏ䶯×÷¡£ÀýÈ磺
Integer i = 100;
Ï൱ÓÚ±àÒëÆ÷ΪÄú×÷ÒÔϵÄÓï·¨±àÒ룺
Integer i = new Integer(100);
ËäÈ»´Ë¹¦Äܷܺ½±ã£¬µ«ÔÚ³ÌÐòÔËÐн׶ÎÄúµÃÁ˽âJavaµÄÓïÒå¡£ÈçÏÂÃæµÄ³ÌÐòÄܱàÒëͨ¹ý£º
Integer i = null;
int j = i;
´Ë³ÌÐò±àÒëʱͨ¹ý£¬µ«ÔËÐÐʱ»áÓдíÎó¡£ÒòΪÕâÖÖд·¨Ï൱ÓÚ£º
Integer i = null;
int j = i.intValue();
ÓÉÓÚiʵ¼ÊÉÏûÓвο¼ÖÁÈκεĶÔÏó£¬ËùÒÔ²»ÄܲÙ×÷intValue()·½·¨£¬ÉÏÃæ³ÌÐòÔËÐÐʱ»á³öÏÖNullPointerException´íÎó¡£
×Ô¶¯×°Ïä¡¢²ðÏäµÄ¹¦ÄÜÌṩÁË·½±ãÐÔ£¬µ«Òþ²ØÁËһϸ½Ú£¬ËùÒÔ±ØÐëСÐÄ¡£ÈçÏÂÁдúÂë1£º
public class AutoBoxDemo2
{
public static void main(String[] args)
{
Ïà¹ØÎĵµ£º
/*
ArrayListÊÇ×î³£ÓõÄListʵÏÖÀ࣬ÄÚ²»ÊÇͨ¹ýÊý×éʵÏֵģ¬ËüÔÊÐí¶ÔÔªËØ½øÐпìËÙËæ»ú·ÃÎÊ¡£Êý×éµÄȱµãÊÇÿ¸öÔªËØÖ®¼ä²»Äܺ¬ÓГ¿Õ϶”£¬µ±Êý×é´óС²»Âú×ãʱÐèÒªÔö¼Ó´æ´¢ÄÜÁ¦£¬¾ÍÒª½«ÒÑÓÐÊý×éÊý¾Ý¸´ÖƵ½ÐµĴ洢¿Õ¼äÖС£µ±´ÓArrayListµÄÖмäλÖòåÈë»òÕßɾ³ýÔªËØÊ±£¬ÐèÒª¶ÔÊý×é½øÐи´ÖÆ¡¢Òƶ¯£¬´ú¼Û±È½Ï¸ß¡£Òò ......
À´CSDNÒ²ÓÐÒ»Äêʱ¼äÁË£¬Ò»Ö±Ã»ÓÐÔÚ×Ô¼ºµÄ¿Õ¼äÀï·¢±íÒ»µã¶«Î÷¡£
ǰ¼¸Ì죬ÎÒÅóÓÑÏëºÍÎÒÒ»Æð¸ã¸ö¶«Î÷£¬ÐèÒªÓõ½java£¬ÎÒûÓÐÒ»µãjava»ù´¡¡£Ã»°ì·¨£¬Ö»Äܹ»´ÓÍ·¿ªÊ¼ÁËѧϰ¡£
´ÓͼÊé¹Ý±§»ØÁËÁ½±¾Êé¡¶java2ÈëÃÅ ½ø½×ÓëÓ¦ÓÃʵÀý¡·ºÍ¡¶java me ʵÓÃÏê½â¡·¡£ÓÉÓÚÓÐCºÍC++µÄ»ù´¡£¬³õÂÔ¿´ÁËÒ»ÏÂÊ飬¶ÔÓÚÊéÖеÄÄÚÈÝ»ù±¾ÉÏ»¹ÊÇÄܹ»Àí½â ......
³Ã׎ñÌ컹Óе㾫Á¦£¬½«¸Õ¸Õѧ»áµÄAPPLETд³öÀ´¡£
¸Ð¾õÓüÇʱ¾±à¼³ÌÐòÌ«³ÔÁ¦£¬²»¹ýÏÖÔÚÊÇ´¦ÓÚѧϰ½×¶Î£¬ÏȰѻù±¾µÄ¶«Î÷ÕÆÎÕÁ˰ɡ£
JAVA APPLET¾ÍÊÇÓÃJAVAÓïÑÔ±àдµÄһЩСӦÓóÌÐò£¬ËüÃÇ¿ÉÒÔÖ±½ÓǶÈëµ½ÍøÒ³ÖлòÕ߯äËûÌØ¶¨ÈÝÆ÷ÖУ¬²¢²úÉúÌØÊâµÄЧ¹û¡£
JAVA APPLET³ÌÐò²»Êǽ«main·½·¨×÷ΪÈë¿Ú¡£
µÚÒ»¸öAPPLET³ÌÐò£º
´ò ......
2010-01-16 06:51
¾ÝInternetNews.com±¨µÀ
£¬×÷Ϊ½ñÄêµÄµÚÒ»´Î¸üУ¬Java SE 6 Update 18£¨Ò²³ÆÎª6u18£©²»½öÐÞ¸´Á˳¬¹ý300¸öbug£¨¹»¶àµÄ°¡£©£¬¶øÇÒ¸üÖµµÃ×¢ÒâµÄÊÇ£¬ÌáÉýÁËÐéÄâ»úHotSpotµÄÐÔÄÜ£¬Õ⽫ͬʱÓÐÒæÓÚJavaºÍJavaFX£¨»ùÓÚJVMµÄRIA·½°¸£©Ó¦ÓóÌÐò¡£
´ËÍ⣬Java°²×°Æ÷µÄµ×²ã»úÖÆ±»Ìæ»»£¬¿ÉÓÃÐÔ´ó´óÌá¸ß¡£
jarÎļþ´ ......