Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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à³ÌÈËÔ±ÈÝÒ׳öÏÖÎÊÌâµÄµØ·½£¬Íü¼Ç»òÕß´íÎóµÄÄÚ´æ»ØÊջᵼÖ³ÌÐò»òϵͳµÄ²»Îȶ¨ÉõÖÁ±ÀÀ££¬JavaÌṩµÄGC¹¦ÄÜ¿ÉÒÔ×Ô¶¯¼à²â¶ÔÏóÊÇ·ñ³¬¹ý×÷ÓÃÓò´Ó¶ø´ïµ½×Ô¶¯»ØÊÕÄÚ´æµÄÄ¿µÄ£¬JavaÓïÑÔûÓÐÌṩÊÍ·ÅÒÑ·ÖÅäÄÚ´æµÄÏÔʾ²Ù×÷·½


Ïà¹ØÎĵµ£º

javaÖÐThreadÏß³ÌÖÐµÄ start£¨£©ºÍrun£¨£©·½·¨µÄÇø±ð


Á½ÖÖ½¨Á¢Ï̶߳ÔÏóµÄ·½·¨£º
    Extends Thread
    implement Runnable
   ÕâÁ½ÖÖ·½·¨¶¼¿ÉÒÔ´´½¨Ò»¸öÏ̶߳ÔÏó£¬
public class TestThread {
    public static void main(String arg[]){
        newThread thread = new ne ......

ÄãÄÜͨ¹ýÏÂÃæµÄ3µÀjavaÃæÊÔÌâÂð?

1.java static inner class ºÍ non-static inner classµÄÇø±ð?
2.Çëд³öÒ»¸ösingletonģʽµÄclass.
ÄãÈç¹ûд³öÏÂÃæµÄ2ÖÖÑùʽ,ÎÒ»áÎÊÄã:ÇëÎÊÄãÈçºÎÔÚͬһ¸öjvmÖв¢ÇÒÔÚͬһ¸öclassLoaderÖеõ½ËüµÄ¶à¸öʵÀý?(Çë²»ÒªÆæ¹Ö)
ÑùÁÐ1:
public class Singleton {  
 private final static Singleton instance= ......

java doc µÄ°ü×¢ÊÍ

ÏàÐÅ´ó¼Ò¶¼ÓÃjavadocµÄÃüÁîÉú³É¹ýapi help °É£¿µ«ÊÇ°ü×¢ÊÍÔõôÀ´µÄÄØ£¿½ñÌìѧϰԴ´úÂëµÄʱºò·¢ÏÖÁËÕâ¸ö°ü×¢Ê͵ÄÀ´Ô´¡£
±ÈÈ磺org.apache.james.utilÕâ¸öµÄ°ü×¢ÊÍ¡£ÔÚÕâ¸ö°üϱßÓÐÒ»¸öpackage.htmlµÄÎļþ¡£
<body>
<p>A variety of utility classes used inside James.</p>
</body>

ÕâÑùÔÙÓ ......

JAVAÒì³£×Ü½á ¼Ì³Ð

ÒÔÏÂÊǶÔJAVAÒì³£µÄ¼Ì³Ð»úÖƵÄһЩ×ܽᡣ
1. RuntimeExceptionÓëException, Error²»Í¬µã£º µ±·½·¨ÌåÖÐÅ׳ö·ÇRuntimeException£¨¼°Æä×ÓÀࣩʱ£¬·½·¨Ãû±ØÐëÉùÃ÷Å׳öµÄÒì³££»µ«Êǵ±·½·¨ÌåÖÐÅ׳öRuntimeException£¨°üÀ¨RuntimeException×ÓÀࣩʱ£¬·½·¨Ãû²»±ØÉùÃ÷¸Ã¿ÉÄܱ»Å׳öµÄÒì³££¬¼´Ê¹ÉùÃ÷ÁË£¬JAVA³ÌÐòÔÚij¸öµ÷Óõĵط½£¬Ò² ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ