javaÄÚ´æ·ÖÎö
ÒÔÏÂÄÚÈÝÀ´×ÔÍøÂç
°æȨÉùÃ÷£ºÔ´´×÷Æ·£¬ÔÊÐíתÔØ£¬×ªÔØʱÇëÎñ±ØÒÔ³¬Á´½ÓÐÎʽ±êÃ÷ÎÄÕ Ôʼ³ö´¦ ¡¢×÷ÕßÐÅÏ¢ºÍ±¾ÉùÃ÷¡£·ñÔò½«×·¾¿·¨ÂÉÔðÈΡ£http://java999.blog.51cto.com/259217/134359
ÔÚJAVAÖУ¬ÓÐÁù¸ö²»Í¬µÄµØ·½¿ÉÒÔ´æ´¢Êý¾Ý£º
1. ¼Ä´æÆ÷£¨register£©¡£ÕâÊÇ×î¿ìµÄ´æ´¢Çø£¬ÒòΪËüλÓÚ²»Í¬ÓÚÆäËû´æ´¢ÇøµÄµØ·½——´¦ÀíÆ÷ÄÚ²¿¡£µ«ÊǼĴæÆ÷µÄÊýÁ¿¼«ÆäÓÐÏÞ£¬ËùÒԼĴæÆ÷ÓɱàÒëÆ÷¸ù¾ÝÐèÇó½øÐзÖÅä¡£Äã²»ÄÜÖ±½Ó¿ØÖÆ£¬Ò²²»ÄÜÔÚ³ÌÐòÖиоõµ½¼Ä´æÆ÷´æÔÚµÄÈκμ£Ïó¡£
2. ¶ÑÕ»£¨stack£©¡£Î»ÓÚͨÓÃRAMÖУ¬µ«Í¨¹ýËüµÄ“¶ÑÕ»Ö¸Õ딿ÉÒÔ´Ó´¦ÀíÆ÷ÄÄÀï»ñµÃÖ§³Ö¡£¶ÑÕ»Ö¸ÕëÈôÏòÏÂÒƶ¯£¬Ôò·ÖÅäеÄÄڴ棻ÈôÏòÉÏÒƶ¯£¬ÔòÊÍ·ÅÄÇЩÄÚ´æ¡£ÕâÊÇÒ»ÖÖ¿ìËÙÓÐЧµÄ·ÖÅä´æ´¢·½·¨£¬½ö´ÎÓڼĴæÆ÷¡£´´½¨³ÌÐòʱºò£¬JAVA±àÒëÆ÷±ØÐëÖªµÀ´æ´¢ÔÚ¶ÑÕ»ÄÚËùÓÐÊý¾ÝµÄÈ·ÇдóСºÍÉúÃüÖÜÆÚ£¬ÒòΪËü±ØÐëÉú³ÉÏàÓ¦µÄ´úÂ룬ÒÔ±ãÉÏÏÂÒƶ¯¶ÑÕ»Ö¸Õë¡£ÕâÒ»Ô¼ÊøÏÞÖÆÁ˳ÌÐòµÄÁé»îÐÔ£¬ËùÒÔËäȻijЩJAVAÊý¾Ý´æ´¢ÔÚ¶ÑÕ»ÖЗ—ÌرðÊǶÔÏóÒýÓ㬵«ÊÇJAVA¶ÔÏó²»´æ´¢ÆäÖС£
3. ¶Ñ£¨heap£©¡£Ò»ÖÖͨÓÃÐÔµÄÄÚ´æ³Ø£¨Ò²´æÔÚÓÚRAMÖУ©£¬ÓÃÓÚ´æ·ÅËùÒÔµÄJAVA¶ÔÏ󡣶Ѳ»Í¬ÓÚ¶ÑÕ»µÄºÃ´¦ÊÇ£º±àÒëÆ÷²»ÐèÒªÖªµÀÒª´Ó¶ÑÀï·ÖÅä¶àÉÙ´æ´¢ÇøÓò£¬Ò²²»±ØÖªµÀ´æ´¢µÄÊý¾ÝÔÚ¶ÑÀï´æ»î¶à³¤Ê±¼ä¡£Òò´Ë£¬ÔÚ¶ÑÀï·ÖÅä´æ´¢ÓкܴóµÄÁé»îÐÔ¡£µ±ÄãÐèÒª´´½¨Ò»¸ö¶ÔÏóµÄʱºò£¬Ö»ÐèÒªnewдһÐмòµ¥µÄ´úÂ룬µ±Ö´ÐÐÕâÐдúÂëʱ£¬»á×Ô¶¯ÔÚ¶ÑÀï½øÐд洢·ÖÅä¡£µ±È»£¬ÎªÕâÖÖÁé»îÐÔ±ØÐëÒª¸¶³öÏàÓ¦µÄ´úÂë¡£ÓöѽøÐд洢·ÖÅä±ÈÓöÑÕ»½øÐд洢´æ´¢ÐèÒª¸ü¶àµÄʱ¼ä¡£
4. ¾²Ì¬´æ´¢£¨static storage£©¡£ÕâÀïµÄ“¾²Ì¬”ÊÇÖ¸“Ôڹ̶¨µÄλÖÔ¡£¾²Ì¬´æ´¢Àï´æ·Å³ÌÐòÔËÐÐʱһֱ´æÔÚµÄÊý¾Ý¡£Äã¿ÉÓùؼü×ÖstaticÀ´±êʶһ¸ö¶ÔÏóµÄÌض¨ÔªËØÊǾ²Ì¬µÄ£¬µ«JAVA¶ÔÏó±¾Éí´ÓÀ´²»»á´æ·ÅÔÚ¾²Ì¬´æ´¢¿Õ¼äÀï¡£
5. ³£Á¿´æ´¢£¨constant storage£©¡£³£Á¿ÖµÍ¨³£Ö±½Ó´æ·ÅÔÚ³ÌÐò´úÂëÄÚ²¿£¬ÕâÑù×öÊÇ°²È«µÄ£¬ÒòΪËüÃÇÓÀÔ¶²»»á±»¸Ä±ä¡£ÓÐʱ£¬ÔÚǶÈëʽϵͳÖУ¬³£Á¿±¾Éí»áºÍÆäËû²¿·Ö·Ö¸îÀ뿪£¬ËùÒÔÔÚÕâÖÖÇé¿öÏ£¬¿ÉÒÔÑ¡Ôñ½«Æä·ÅÔÚROMÖÐ
6. ·ÇRAM´æ´¢¡£Èç¹ûÊý¾ÝÍêÈ«´æ»îÓÚ³ÌÐòÖ®Í⣬ÄÇôËü¿ÉÒÔ²»ÊܳÌÐòµÄÈκοØÖÆ£¬ÔÚ³ÌÐòûÓÐÔËÐÐʱҲ¿ÉÒÔ´æÔÚ¡£
ÉÏÃæÕâ¶Î»°ÕªÈ¡Ö®¡¶Thinking in Java¡·¡»
---------------------------------------------------------------------
¶ÑÊÇÒ»¸öÔËÐÐʱÊý¾ÝÇø
Ïà¹ØÎĵµ£º
ÄÚ´æÒç³öÓëÊý¾Ý¿âËø±íµÄÎÊÌ⣬¿ÉÒÔ˵ÊÇ¿ª·¢ÈËÔ±µÄجÃΣ¬Ò»°ãµÄ³ÌÐòÒì³££¬×ÜÊÇ¿ÉÒÔÖªµÀÔÚʲôʱºò»òÊÇÔÚʲô²Ù×÷²½ÖèÉϳöÏÖÁËÒì³££¬¶øÇÒ¸ù¾Ý¶ÑÕ»ÐÅÏ¢Ò²ºÜÈÝÒ׶¨Î»µ½³ÌÐòÖÐÊÇij´¦³öÏÖÁËÎÊÌâ¡£ÄÚ´æÒç³öÓëËø±íÔò²»È»£¬Ò»°ãÏÖÏóÊDzÙ×÷Ò»°ãʱ¼äºóϵͳԽÀ´Ô½Âý£¬Ö±µ½ËÀ»ú£¬µ«²¢²»ÄÜÃ÷È·ÊÇÔÚʲô²Ù×÷ÉϳöÏֵģ¬·¢ÉúµÄʱ¼äµãҲûÓйæ ......
·ÏÁË¡£2ÄêûÕý¾ÓùýJavaÁË¡£ÎªÁË°ïÅóÓÑæ±ØÐëÈ«²¿¼ñÆðÀ´¡£BT¼Æ»®±»ÆÈÔÝÍ£¡£
»¹ÊǺÃÄÔ×Ó²»ÈçÀñÊÍ·¡£
¼ÇÏÂÀ´£º
Java»·¾³±äÁ¿ÉèÖãº
http://blog.csdn.net/aneka/archive/2008/09/19/2948209.aspx
ѧϰ Java ¿ª·¢µÄµÚÒ»²½¾ÍÊǹ¹½¨¿ª·¢»·¾³£¬ÏÂÃæÒÔ JDK6.0 ÔÚ Windows XP ÉϵݲװÅäÖÃΪÀýÀ´½²Êö£º
µÚÒ»²½£ºÏÂÔØ JDK
´ ......
¡¡Ãû³Æ
JavaÓïÑÔ±àÂë¹æ·¶(Java Code Conventions)
¡¡ÒëÕß
³¿¹â£¨Morning£©
¡¡¼ò½é
±¾Îĵµ½²ÊöÁËJavaÓïÑԵıàÂë¹æ·¶£¬½ÏÖ®³ÂÊÀÖÒÏÈÉú¡¶c++±àÂë¹æ·¶¡·µÄºÆ·±Ï꾡£¬´ËÎĵ±Êô¶ÌС¾«º·ÁË¡£¶øÆäÖÐËùÁÐÖ®¸÷ÏîÌõ¿î£¬´Ó±àÂë·ç¸ñ£¬µ½×¢ÒâÊÂÏ²»µ¥Ö»Java£¬¶ÔÓÚÆäËûÓïÑÔ£¬Ò²¶¼ºÜÓнè¼øÒâÒå¡£ÒòΪ¼ò¶Ì£¬ËùÒÔÒ׼ǣ¬´ó¼Ò² ......
import sun.misc.Signal;
import sun.misc.SignalHandler;
/***
* javaÐźŴ¦Àídemo
* @author jiang_qh
*
*/
public class SignalHandlerExample implements SignalHandler{
private SignalHandler oldHandler;
public void handle(Signal signal) {
System.out.println("Signal handler called for signal " ......