java³ÌÐòÔ±ÃæÊԱر¸32Òªµã
µÚÒ»£¬Ì¸Ì¸final, finally, finalizeµÄÇø±ð¡£
¡¡final ÓÃÓÚÉùÃ÷ÊôÐÔ£¬·½·¨ºÍÀ࣬·Ö±ð±íʾÊôÐÔ²»¿É±ä£¬·½·¨²»¿É¸²¸Ç£¬À಻¿É¼Ì³Ð¡£finallyÊÇÒì³£´¦ÀíÓï¾ä½á¹¹µÄÒ»²¿·Ö£¬±íʾ×ÜÊÇÖ´ÐС£finalizeÊÇ ObjectÀàµÄÒ»¸ö·½·¨£¬ÔÚÀ¬»øÊÕ¼¯Æ÷Ö´ÐеÄʱºò»áµ÷Óñ»»ØÊÕ¶ÔÏóµÄ´Ë·½·¨£¬¿ÉÒÔ¸²¸Ç´Ë·½·¨ÌṩÀ¬»øÊÕ¼¯Ê±µÄÆäËû×ÊÔ´»ØÊÕ£¬ÀýÈç¹Ø±ÕÎļþµÈ¡£
µÚ¶þ£¬Anonymous Inner Class (ÄäÃûÄÚ²¿Àà) ÊÇ·ñ¿ÉÒÔextends(¼Ì³Ð)ÆäËüÀ࣬ÊÇ·ñ¿ÉÒÔimplements(ʵÏÖ)interface(½Ó¿Ú)?
¡¡¿ÉÒԼ̳ÐÆäËûÀà»òÍê³ÉÆäËû½Ó¿Ú£¬ÔÚswing±à³ÌÖг£Óô˷½Ê½¡£¡¡
µÚÈý£¬Static Nested Class ºÍ Inner ClassµÄ²»Í¬£¬ËµµÃÔ½¶àÔ½ºÃ(ÃæÊÔÌâÓеĺÜÁýͳ)¡£
Static Nested ClassÊDZ»ÉùÃ÷Ϊ¾²Ì¬£¨static£©µÄÄÚ²¿À࣬Ëü¿ÉÒÔ²»ÒÀÀµÓÚÍⲿÀàʵÀý±»ÊµÀý»¯¡£¶øͨ³£µÄÄÚ²¿ÀàÐèÒªÔÚÍⲿÀàʵÀý»¯ºó²ÅÄÜʵÀý»¯¡£¡¡¡¡
µÚËÄ£¬&ºÍ&&µÄÇø±ð¡£
&ÊÇλÔËËã·û£¬±íʾ°´Î»ÓëÔËË㣬&&ÊÇÂß¼ÔËËã·û£¬±íʾÂß¼Ó루and£©.¡¡¡¡
µÚÎ壬HashMapºÍHashtableµÄÇø±ð¡£
HashMapÊÇHashtableµÄÇáÁ¿¼¶ÊµÏÖ£¨·ÇḬ̈߳²È«µÄʵÏÖ£©£¬ËûÃǶ¼Íê³ÉÁËMap½Ó¿Ú£¬Ö÷ÒªÇø±ðÔÚÓÚHashMapÔÊÐí¿Õ£¨null£©¼üÖµ£¨key£©,ÓÉÓÚ·ÇḬ̈߳²È«£¬Ð§ÂÊÉÏ¿ÉÄܸßÓÚHashtable.¡¡¡¡
µÚÁù£¬Collection ºÍ CollectionsµÄÇø±ð¡£
CollectionÊǼ¯ºÏÀàµÄÉϼ¶½Ó¿Ú£¬¼Ì³ÐÓëËûµÄ½Ó¿ÚÖ÷ÒªÓÐSet ºÍList.CollectionsÊÇÕë¶Ô¼¯ºÏÀàµÄÒ»¸ö°ïÖúÀ࣬ËûÌṩһϵÁо²Ì¬·½·¨ÊµÏÖ¶Ô¸÷ÖÖ¼¯ºÏµÄËÑË÷¡¢ÅÅÐò¡¢Ḭ̈߳²È«»¯µÈ²Ù×÷¡£¡¡¡¡
µÚÆߣ¬Ê²Ã´Ê±ºòÓÃassert¡£
1.4 ÐÂÔö¹Ø¼ü×Ö£¨Óï·¨£©£¬ÓÃÓÚ²âÊÔboolean±í´ïʽ״̬£¬¿ÉÓÃÓÚµ÷ÊÔ³ÌÐò¡£Ê¹Ó÷½·¨ assert £¬±íʾÈç¹û±í´ïʽΪÕ棨true£©,ÔòÏÂÃæµÄÓï¾äÖ´ÐУ¬·ñÔòÅ׳öAssertionError¡£ÁíÍâµÄʹÓ÷½Ê½assert < boolean±í´ïʽ>:£¬±íʾÈç¹û±í´ïʽΪÕ棬ºóÃæµÄ±í´ïʽºöÂÔ£¬·ñÔòºóÃæ±í´ïʽµÄÖµÓÃÓÚAssertionErrorµÄ¹¹½¨²ÎÊý¡£×¢Òâ±àÒëʱҪ Ôö¼Ó-source 1.4 ²ÎÊý£¬·ñÔò±¨´í¡£]ÔËÐÐʱҪÔö¼Ó –ea²ÎÊý£¬·ñÔòassertÐб»ºöÂÔ¡¡¡¡
µÚ°Ë£¬GCÊÇʲô? ΪʲôҪÓÐGC?
GCÊÇÀ¬»øÊÕ¼¯µÄÒâ˼£¨Gabage Collection£©,ÄÚ´æ´¦ÀíÊDZà³ÌÈËÔ±ÈÝÒ׳öÏÖÎÊÌâµÄµØ·½£¬Íü¼Ç»òÕß´íÎóµÄÄÚ´æ»ØÊ
Ïà¹ØÎĵµ£º
javeÔõôѧϰ×î¿ì
2008-11-08 06:57
ÓûËÙÔò²»´ï£¬Ñ§Ï°JAVAûÓГ¿ÉÒÔÀ”ÕâÖ̶ֳȡ£·á¸»¶à²Ê£¬Ñ§Ï°Ò»ÄêµÄʱ¼äÒ²²»Ò»¶¨ÄÜѧÍê»ù´¡£¬ÎÒÔø¾Ò²Ïë¹ýÕâ¸öÎÊÌ⣬µ«ºóÀ´¿´ÁËһƪÎÄÕ£¬±ã³¹È»ÐÑÎò¡£ÏÂÃæÕâƪÎÄÕ£¨²»ÒªÏÓ³¤£¬¿´Íê¾ÍÓÐÊÕÒ棬»¹ÓдËÎÊÌâ²»Òª¹Ø±Õ»òÊÇͶƱ£¬»Ø´ð¶¼ÊÇÐÁ¿àµØ£¬²»Òª´ò»ý¼«ÐÔ£¬²»¹»ºÃÒ²½«¾ÍЩ°É ......
¡¡1¡¢Ê¹ÓÃjava.util.ResourceBundleÀàµÄgetBundle()·½·¨
ʾÀý£º
String name = "logging"; // the logging.properties file in src root folder
ResourceBundle rb = ResourceBundle.getBundle(name,Locale.getDefault());
// test the rb
String propertyKey = "xxx";
System.out.println(rb.getString(propert ......
ת×Ô:http://lavasoft.blog.51cto.com/62575/27069
Java¶àÏ̱߳à³Ì×ܽá
Ò»¡¢ÈÏʶ¶àÈÎÎñ¡¢¶à½ø³Ì¡¢µ¥Ï̡߳¢¶àÏß³Ì
ÒªÈÏʶ¶àÏ߳̾ÍÒª´Ó²Ù×÷ϵͳµÄÔÀí˵Æð¡£
ÒÔÇ°¹ÅÀϵÄDOS²Ù×÷ϵͳ£¨V 6.22£©Êǵ¥ÈÎÎñµÄ£¬»¹Ã»ÓÐÏ̵߳ĸÅÄϵͳÔÚÿ´ÎÖ»ÄÜ×öÒ»¼þÊÂÇé¡£±ÈÈçÄãÔÚcopy¶«Î÷µÄʱºò²»ÄÜrenameÎļþÃû¡£ÎªÁËÌá¸ß ......
×î½ü×öjava¿Í»§¶Ë jre+installanywhere+jar ´ò°ü·¢²¼.exe°²×°¿Í»§¶Ë¡£´ò°ü³öÀ´ÎÞÄÎjreÌ«´óbeta°æ³ÌÐòÖ»Óм¸°Ùk ¿ÉÊÇjre´ò°üÏÂÀ´Óн«½ü30M£¬ÔÚÍøÉÏËÑË÷¾«¼ò°æ¿Í»§¶Ë£¬¿ÉÊǰ汾ȷʵ̫¾«¼òÁËÓÐЩÀàûÓУ¬¶øÕâ°æ±¾ÓÖºÍ×Ô¼º×°µÄ°æ±¾Óв»Í¬£¬ÔÚÍøÉÏÕÒÑ°°ëÌì²»µÃjreµÄ¾É°æ±¾×îºóÖÕÓÚÕÒµ½£¬ÕâÀïÌṩµØÖ·£¨java¸÷°æ±¾ÏÂÔصØÖ·£ ......
³õѧÕ߸üÊʺÏʹÓÃÎı¾±à¼Èí¼þÀ´Ñ§Ï°Java£¬¶ÔJavaÓÐÒ»¶¨ÈÏʶºóÍƼöʹÓÃEclipse£¬¶ÔÄÇЩҪÇ󿪷¢Ð§ÂʵijÌÐòÔ±µ±È»Ê×Ñ¡¾ÍÊÇJBuilder¡£
¶ÔÓÚÎı¾±à¼Èí¼þÎÒÍƼöEditPlus£¬EditPlusÊǺܶà³ÌÐòÔ±·Ç³£ÊìϤµÄ±à¼¹¤¾ß£¬ËüÒÔÕ¼ÓÃϵͳ×Ê
ԴС¡¢²Ù×÷¼ò±ãÁé»î¡¢Ö§³ÖÎļþÀàÐͷḻ ......