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

JAVAÀà×°ÔØ»úÖÆ


 
Java
ÐéÄâ»úÖеÄÀà¼ÓÔØÆ÷·ÖΪÁ½ÖÖ£ºÔ­Ê¼Àà¼ÓÔØÆ÷£¨primordial class loader
£©ºÍÀà¼ÓÔØÆ÷¶ÔÏó£¨class loader objects
£©¡£
ԭʼÀà¼ÓÔØÆ÷ÊÇJava
ÐéÄâ»úʵÏÖµÄÒ»²¿·Ö£¬Àà¼ÓÔØÆ÷¶ÔÏóÊÇÔËÐÐÖеijÌÐòµÄÒ»²¿·Ö¡£²»Í¬Àà¼ÓÔØÆ÷¼ÓÔصÄÀà±»²»Í¬µÄÃüÃû¿Õ¼äËù·Ö¸î¡£
    
Àà¼ÓÔØÆ÷µ÷ÓÃÁËÐí¶àJava
ÐéÄâ»úÖÐÆäËûµÄ²¿·ÖºÍjava.lang
°üÖеĺܶàÀà¡£±ÈÈ磬Àà¼ÓÔضÔÏó¾ÍÊÇjava.lang.ClassLoader
×ÓÀà µÄʵÀý£¬ClassLoader
ÀàÖеķ½·¨¿ÉÒÔ·ÃÎÊÐéÄâ»úÖеÄÀà¼ÓÔØ»úÖÆ£»Ã¿Ò»¸ö±»Java
ÐéÄâ»ú¼ÓÔصÄÀ඼»á±»±íʾΪһ¸ö java.lang.Class
ÀàµÄʵÀý¡£ÏñÆäËû¶ÔÏóÒ»Ñù£¬Àà¼ÓÔØÆ÷¶ÔÏóºÍClass
¶ÔÏ󶼱£´æÔÚ¶ÑÖУ¬±»¼ÓÔصÄÐÅÏ¢±»±£´æÔÚ·½·¨ÇøÖС£
     1
¡¢¼ÓÔØ¡¢Á¬½Ó¡¢³õʼ»¯£¨Loading, Linking and
Initialization
£©
Àà¼ÓÔØ×Óϵͳ²»½ö½ö¸ºÔð¶¨Î»²¢¼ÓÔØÀàÎļþ£¬Ëû°´ÕÕÒÔÏÂÑϸñµÄ²½Öè×÷Á˺ܶàÆäËûµÄÊÂÇ飺£¨¾ßÌåµÄÐÅÏ¢²Î¼ûµÚÆßÕµē
ÀàµÄÉúÃüÖÜÆÚ”
£©
          1
£©¡¢¼ÓÔØ£ºÑ°ÕÒ²¢µ¼ÈëÖ¸¶¨ÀàÐÍ£¨ÀàºÍ½Ó¿Ú£©µÄ¶þ½øÖÆÐÅÏ¢
          2
£©¡¢Á¬½Ó£º½øÐÐÑéÖ¤¡¢×¼±¸ºÍ½âÎö
              
¢Ù
ÑéÖ¤£ºÈ·±£µ¼ÈëÀàÐ͵ÄÕýÈ·ÐÔ
              
¢Ú
×¼±¸£ºÎªÀàÐÍ·ÖÅäÄÚ´æ²¢³õʼ»¯ÎªÄ¬ÈÏÖµ
              
¢Û
½âÎö£º½«×Ö·ûÒýÓýâÎöΪֱ½ÓÒûÓÃ
          3
£©¡¢³õʼ»¯£ºµ÷ÓÃJava
´úÂ룬³õʼ»¯Àà±äÁ¿ÎªºÏÊʵÄÖµ
     2
¡¢Ô­Ê¼Àà¼ÓÔØÆ÷£¨The Primordial Class Loader
£©
    
ÿ¸öJava
ÐéÄâ»ú¶¼±ØÐëʵÏÖÒ»¸öԭʼÀà¼ÓÔØÆ÷£¬ËûÄܹ»¼ÓÔØÄÇЩ×ñÊØÀàÎļþ¸ñʽ²¢ÇÒ±»ÐÅÈεÄÀà¡£µ«ÊÇ£¬Java
ÐéÄâ»úµÄ¹æ·¶²¢Ã»Óж¨ÒåÈçºÎ¼ÓÔØÀ࣬ÕâÓÉ Java
ÐéÄâ»úʵÏÖÕß×Ô¼º¾ö¶¨¡£
¶ÔÓÚ¸ø¶¨ÀàÐÍÃûµÄÀàÐÍ£¬Ô­Ê¼¼ÓÔØÆ÷±ØÐëÕÒµ½ÄǸöÀàÐÍÃû¼Ó“.class”
µÄÎļþ²¢¼ÓÔØÈëÐéÄâ»úÖС£
     3
¡¢Àà¼ÓÔØÆ÷¶ÔÏó
    
ËäÈ»Àà¼ÓÔØÆ÷¶ÔÏóÊÇJava
³ÌÐòµÄÒ


Ïà¹ØÎĵµ£º

javaÒì³£

ËãÊõÒì³£ÀࣺArithmeticExecption
¿ÕÖ¸ÕëÒì³£ÀࣺNullPointerException
ÀàÐÍÇ¿ÖÆת»»Òì³££ºClassCastException
Êý×鸺ϱêÒì³££ºNegativeArrayException
Êý×éϱêÔ½½çÒì³££ºArrayIndexOutOfBoundsException
Î¥±³°²È«Ô­ÔòÒì³££ºSecturityException
ÎļþÒѽáÊøÒì³££ºEOFException
ÎļþδÕÒµ½Òì³££ºFileNotFoundExcepti ......

±È½ÏÈ«ÃæµÄJava»·¾³ÅäÖÃ

windows xpÏÂÅäÖÃJDK»·¾³±äÁ¿£º
      1.°²×°JDK£¬°²×°¹ý³ÌÖпÉÒÔ×Ô¶¨Ò尲װĿ¼µÈÐÅÏ¢£¬ÀýÈçÎÒÃÇÑ¡Ôñ°²×°Ä¿Â¼ÎªD:\java\jdk1.5.0_08£»
¡¡ 2.°²×°Íê³Éºó£¬ÓÒ»÷“ÎҵĵçÄÔ”£¬µã»÷“ÊôÐÔ”£»
      3.Ñ¡Ôñ“¸ß¼¶”Ñ¡Ï£¬µã»÷“ ......

javaÊý¾Ý½á¹¹Ö®Á´±íLinkedList

Á´±íLinkedListÊÇÓÉÈô¸É¸ö³ÆΪ½áµãµÄ¶ÔÏó×é³ÉµÄÒ»ÖÖÊý¾Ý½á¹¹£¬Ã¿¸ö½áµãº¬ÓÐÒ»¸öÊý¾ÝºÍÏÂÒ»¸ö½áµãµÄÒýÓ㬻òº¬ÓÐÒ»¸öÊý¾Ý²¢º¬ÓÐÉÏÒ»¸ö½áµãµÄÒýÓúÍÏÂÒ»¸ö½áµãµÄÒýÓà  LinkedListÀàÔÚjava.util°üÖÐ
1.¹¹Ôì·½·¨£ºLinkedList()
2.³£Ó÷½·¨
     public boolean add(Object o)£ºÏòÁ´±íÌí¼ÓÒ»¸ ......

javaÊý¾Ý½á¹¹Ö®ÏòÁ¿Vector

ÏòÁ¿µÄÊý¾ÝÀàÐÍÀàËÆÒ»¸öÊý×飬µ«Ëü´æ´¢µÄÔªËØÊý¾ÝÀàÐͲ»ÒªÇóÒ»Ö   VectorÀàÊÇÔÚjava.util°üÖÐ
1.¹¹Ôì·½·¨£ºVector()
2.³£Ó÷½·¨
     public void add(Object o)£º½«¶ÔÏóoÌí¼Óµ½ÏòÁ¿µÄĩβ
     public void add(int index,Object o)£º½«¶ÔÏóoÌí¼Óµ½ÏòÁ¿µÄÖ¸¶¨Î»Öà ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ