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

Thinking in Javaѧϰ±Ê¼Ç£¨Ò»£©

ÔÚjava³ÌÐòÖУ¬ÍòÊÂÍòÎï½Ô¶ÔÏ󣬼´Ê¹ÊÇjava³ÌÐò±¾Éí£¬Ò²ÊÇÒ»¸ö¶ÔÏó
Ò»¡¢ReferenceÊDzÙ×ݶÔÏóÖ®Ô¿³×
             cÓïÑÔÖÐÊÇʹÓÃÖ¸ÕëÀ´²Ù×ݶÔÏóµÄ£¬µ«ÊÇjavaÄØ£¿ÓõÄÊÇreferenceÀ´²Ù×ݶÔÏó£¬ÎÒϰ¹ß°ÑËû½Ð×ö¾ä±ú£¬¾ä±úºÍ¶ÔÏóµÄ¹ØÏµ¾ÍÏëÊǵçÊÓÒ£¿ØÆ÷ºÍµçÊÓ»úµÄ¹ØÏµÒ»Ñù£¬¼ÈÈ»ÊÇÕâÑù£¬ÄÇôң¿ØÆ÷ºÍµçÊÓ»ú¶¼ÊÇ¿ÉÒÔ¶ÀÁ¢³öÏÖµÄ
           ÀýÈ磺String name;
            Õâ¸öjavaÓï¾äÖ»»á²úÉú¾ä±ý£¨Ò£¿ØÆ÷£©£¬²¢²»²úÉúʵ¼ÊµÄ¶ÔÏ󣨵çÊÓ»ú£©£¬¾ÍÏëÄãÀÏÆÅ»¹Ã»Éúº¢×Ó֮ǰÄãÃǾͰÑÃû×Ö¸øÈ¡ºÃÁËÒ»Ñù£¬¾ä±ú²¢Ã»ÓÐÁ¬½Óµ½Êµ¼ÊµÄ¶ÔÏóÉÏ¡£Õâ¸öÑù×Óд´úÂëÊDz»ÍƼöµÄ£¬Ò»¸öûÓÐÖ¸Ïò¶ÔÏóµÄ¾ä±úÔÚµ÷ÓõÄʱºò±àÒëÆ÷»á±§´í£¬Ó¦µ±Ê¹ÓÃString name="baby";£¬»òÕßʹÓÃString name =new String("baby");ÕâÀïnewµÄÒâ˼ÊDzúÉúÒ»¸östringÀàÐ͵ĶÔÏ󣬲¢ÇÒÕâ¸östring½Ð×öbaby¡£Õâ2¸ö·½·¨¶¼¿ÉÒÔʵÏÖ¶ÔÏóµÄ½¨Á¢¡£
¶þ¡¢ËùÓеĶÔÏó¶¼ÐèÒªÄãÀ´½¨Á¢
       1¡¢´¢´æÔÚÄÇÀï
             a¡¢¼Ä´æÆ÷  ÕâÀïÊǺËÐĵĴ洢¿Õ¼ä£¬ÎÒÃÇÊÇû°ì·¨²Ù×ݵÄ
             b¡¢Õ» £¨stack £©ÕâÀïµÄ´æÈ¡Ëٶȿ죬ЧÂʸߣ¬ÒòΪÕâÀïÒªÇó±»´æ´¢µÄÊý¾ÝÓоßÌå´óСºÍ´æ»îʱ¼äÏÞÖÆ£¬Ê¹Óõ¯ÐÔС£¬ÕâÀïÒ»°ã´æ´¢µÄÊÇÎÒÃǵĶÔÏó¾ä±ú£¬¶ø¶ÔÏóÊDz»´æÔÚÕâÀïµÄ
             c¡¢¶Ñ £¨heap£© ÕâÀïÊÇͨÓõĴ洢¿Õ¼ä£¬Ëû±ÈstackºÃÔÚ±àÒëÆ÷²»ÐèÒªÖªµÀʵ¼ÊÔÚheapÖд洢Êý¾ÝµÄ´óС£¬Ò²²»ÖªµÀÕâ¸ö¿Õ¼äÐèÒª·ÖÅä¶à³¤Ê±¼ä£¬µ¯ÐԺã¬ËùÒÔÓÃÀ´´æ´¢¶ÔÏ󣬵«ÊÇËÙ¶ÈÒª±ÈstackÂýºÜ¶à
             d¡¢¾²Ì¬´æ´¢¿Õ¼ä£¨static storage£©ÕâÀïÊÇ´æ·Å±»ÉùÃ÷ΪstaticµÄÌØ¶¨³ÉÔ±£¬java¶ÔÏó±¾ÉíÊDz»»á·ÖÅäÔÚÕâÀïµÄ
             e¡¢³£Á¿´¢´æ¿Õ¼ä ÕâÀï´æ·ÅµÄÊdzÌÐòÖеij£Á¿£¬³£Á¿Öµ²»»á¸Ä±ä£¬×ȫ
             f


Ïà¹ØÎĵµ£º

javaʹÓÃrocksawºÍvserv tcpipʵÏÖ»ùÓÚICMPµÄPing¹¦ÄÜ

Ò»£º×¼±¸ www.savarese.org download
 1.  rocksaw-1.0.0-src.tar.gz
 2.  vserv-tcpip-0.9.2-src.tar.gz
¶þ£º±àÒëÔ´ÎļþµÃµ½jar°ü ʹÓÃAnt
 1.  build vserv-tcpip-0.9.2-src
      ÔÚvserv-tcpip-0.9.2Ŀ¼ÏÂÃæ½¨Ò»¸ötestsĿ¼£¬È»ºóÔÚcmd´°¿ÚϽøÈë ......

Java·´Éä3

1.2.5.MethodÀࣺ
Method´ú±íij¸öÀàµÄÒ»¸ö·½·¨£¬Ìṩ¹ØÓÚÀà»ò½Ó¿ÚÉϵ¥¶Àij¸ö·½·¨µÄÐÅÏ¢¡£Ëù·´Ó³µÄ·½·¨¿ÉÄÜÊÇÀà·½·¨»òʵÀý·½·¨£¨°üÀ¨³éÏó·½·¨£©¡£ Õâ¸öÀ಻ÄÑÀí½â£¬ËüÊÇÓÃÀ´·â×°·´ÉäÀà·½·¨µÄÒ»¸öÀà¡£
·½·¨
ÃèÊö
public String getName()
·µ»Ø´Ë Method ¶ÔÏó±íʾµÄ·½·¨Ãû³Æ
public Object invoke(Object obj,Object... ......

javaÓÐȤµÄ¾­µäÌâÄ¿

l    JBS
1.Áоٳö 10¸öJAVAÓïÑÔµÄÓÅÊÆ
a:Ãâ·Ñ£¬¿ªÔ´£¬¿çƽ̨(ƽ̨¶ÀÁ¢ÐÔ)£¬¼òµ¥Ò×Ó㬹¦ÄÜÍêÉÆ£¬ÃæÏò¶ÔÏ󣬽¡×³ÐÔ£¬¶àỊ̈߳¬½á¹¹ÖÐÁ¢£¬ÆóÒµÓ¦ÓõijÉÊìÆ½Ì¨, ÎÞÏßÓ¦ÓÃ
2.ÁоٳöJAVAÖÐ10¸öÃæÏò¶ÔÏó±à³ÌµÄÊõÓï
a:°ü£¬À࣬½Ó¿Ú£¬¶ÔÏó£¬ÊôÐÔ£¬·½·¨£¬¹¹ÔìÆ÷£¬¼Ì³Ð£¬·â×°£¬¶à̬£¬³éÏ󣬷¶ÐÍ
3.ÁоٳöJAVAÖÐ6¸ ......

javaÏß³Ì

Ò»ÖÖÊǼ̳Ð×ÔThreadÀà.Thread ÀàÊÇÒ»¸ö¾ßÌåµÄÀ࣬¼´²»ÊdzéÏóÀ࣬¸ÃÀà·â×°ÁËÏ̵߳ÄÐÐΪ¡£Òª´´½¨Ò»¸öỊ̈߳¬³ÌÐòÔ±±ØÐë´´½¨Ò»¸ö´Ó Thread Àർ³öµÄÐÂÀà¡£³ÌÐòԱͨ¹ý¸²¸Ç Thread µÄ run() º¯ÊýÀ´Íê³ÉÓÐÓõŤ×÷¡£Óû§²¢²»Ö±½Óµ÷Óô˺¯Êý£»¶øÊÇͨ¹ýµ÷Óà Thread µÄ start() º¯Êý£¬¸Ãº¯ÊýÔÙµ÷Óà run()¡£
   
&nb ......

ʹÓÃjava ¼àÌýÆ÷ʵÏÖÔÚÏßÈËÊýͳ¼Æ

 
1£®  ÔÚ¹¤³ÌÖд´½¨¼àÌýÀàSessionListener ²¢ÇÒʵÏÖHttpSessionListener½Ó¿Ú£¬´úÂëÈçÏÂ
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
 
public class SessionListener implements HttpSessionListener {
 
    private static ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ