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

javaÖÐÕ»(stack)ºÍ¶Ñ(heap)µÄÇø±ð

 ¼øÓÚÍøÉ϶ÔJavaµÄ¶ÑÕ»Çø·Ö£¬ÖÚ˵·×ç¡£¬ÓеİÑC++µÄ¶ÑÕ»Ò²»ì½øÀ´£¬ÓеÄûÓзÖÇåStack£¬HeapµÄÖÐÎÄ·­Ò룬¸ãµÃÎÒ°ÑStackµ±×÷¶Ñ£¬Heapµ±×÷Õ»£¬»ìÂÒÁË£¡×òÌì²Î¼ÓÒ»ÍâÆóµÄ±ÊÊÔ£¬Ñ¡ÔñÓ¢ÎÄ´ð°¸Ê±£¬Ñ¡´íÁË£¬ÖªµÀ´ð°¸ÊǶѣ¬È´Ñ¡ÔñÁËStack£¡½ñÌ죬¾ö¶¨°ÑÁ½ÕßÇø·ÖÇå³þ£¡ 
  
         Ê×ÏÈ·ÖÇå³þStack£¬HeapµÄÖÐÎÄ·­Ò룺Stack—Õ»£¬Heap—¶Ñ¡£ 
        ÔÚÖÐÎÄÀStack¿ÉÒÔ·­ÒëΪ“¶ÑÕ»”£¬ËùÒÔÎÒÖ±½Ó²éÕÒÁ˼ÆËã»úÊõÓïÀïÃæ¶ÑºÍÕ»¿ªÍ·µÄ´ÊÓ 
       ¶Ñ´æ´¢£º heapstorage    ¶Ñ´æ´¢·ÖÅ䣺 heapstorage allocation  ¶Ñ´æ´¢¹ÜÀí£º heap storage management 
        Õ»±àÖ·£º stack addressing   Õ»±ä»»£ºstack transformation  Õ»´æ´¢Æ÷£ºstack memory  Õ»µ¥Ôª£º stack cell
  
          ½Ó×Å£¬×ܽáÔÚJavaÀïÃæHeapºÍStack·Ö±ð´æ´¢Êý¾ÝµÄ²»Í¬¡£ 
  
      
      Heap(¶Ñ)
      Stack(Õ»)
 JVMÖеŦÄÜ
     ÄÚ´æÊý¾ÝÇø    
               ÄÚ´æÖ¸ÁîÇø
 ´æ´¢Êý¾Ý
     ¶ÔÏóʵÀý(1)
 »ù±¾Êý¾ÝÀàÐÍ, Ö¸Áî´úÂë,³£Á¿,¶ÔÏóµÄÒýÓõØÖ·(2)
1. ±£´æ¶ÔÏóʵÀý£¬Êµ¼ÊÉÏÊDZ£´æ¶ÔÏóʵÀýµÄÊôÐÔÖµ£¬ÊôÐÔµÄÀàÐͺͶÔÏó±¾ÉíµÄÀàÐͱê¼ÇµÈ£¬²¢²»±£´æ¶ÔÏóµÄ·½·¨£¨·½·¨ÊÇÖ¸Á±£´æÔÚstackÖУ©¡£
   
   ¶ÔÏóʵÀýÔÚheapÖзÖÅäºÃÒÔºó£¬ÐèÒªÔÚstackÖб£´æÒ»¸ö4×Ö½ÚµÄheapÄÚ´æµØÖ·£¬ÓÃÀ´¶¨Î»¸Ã¶ÔÏóʵÀýÔÚheapÖеÄλÖ㬱ãÓÚÕÒµ½¸Ã¶ÔÏóʵÀý¡£ 
  
2. »ù±¾Êý¾ÝÀàÐÍ°üÀ¨byte¡¢int¡¢char¡¢long¡¢float¡¢double¡¢booleanºÍshort¡£
    º¯Êý·½·¨ÊôÓÚÖ¸Áî. 
  
 =======================        
  ÒýÓÃÍøÉϹ㷺Á÷´«µÄ“Java¶ÑºÍÕ»µÄÇø


Ïà¹ØÎĵµ£º

Java ѧϰ˳Ðò

Òª¿ªÊ¼Ñ§Ï°JavaÁË
ÉùÃ÷£ºÒÔÏÂÊÇÎÒתÔصģ¬ÎÒ¾õµÃͦ²»´íµÄ ÄÃÀ´·ÖÏí¡£ 
j2eeµÄѧϰ˳Ðò
ÎÒÈÏΪj2eeÒ»¶¨ÒªÑ­Ðò½¥½ø£¬ÎÒ×Ô¼º¾ÍÊÇÕâÑù£¬´ÓÒ»¸öÒ»°ã¸ßУ¼ÆËã»úϵ±ÏÒµ£¬
È»ºóÂú»³ÃÎÏëºÍ¼¤ÇéÈ¥ÕÒ¹¤×÷£¬ÎÒkao,ÄǸöµ¥Î»¶¼¸øÎÒ°×ÑÛ£¬Á¬»áÀϼҵÄÐĶ¼ÓÐÁË£¬ÄǸöʱºòºÍ¼¸¸ö¸çÃÇ£¬×¡ÔÚµØÏÂÊÒ£¨¾ÍÔÚ±±º½ÄÇÀ¡£»·¾³Ï൱¶ñÁÓ£¬Å® ......

ÉîÈëdz³öÉè¼Æģʽ(C#/Java°æ)

GRASPģʽ:General Responsibility Assignment Software Patterns£ºÍ¨ÓÃÔðÈηÖÅäÈí¼þģʽ
ÀïÃæÖØÒªµÄ¸ÅÄîÊÇÔðÈΣ¬ÔðÈÎÊÇÀà¼äµÄÒ»ÖÖºÏÔ¼»òÊÇÒåÎñ£¬¿ÉÒÔϸ·ÖΪÁ½²¿·Ö£¬Óù«Ê½±íʾÈçÏ£º
ÔðÈÎ = ÖªµÀÔðÈÎ + ÐÐΪÔðÈΣ¨ÕâÀïÃæËƺõ´æÔÚ¸ÅÄîµÄÑ­»·¶¨Ò壩
×¢£ºÓÃͨË׵Ļ°À´½²£¬ÔðÈξÍÊÇÒ»¸öÀàÖªµÀÒª×öʲô£¬²¢ÇÒÄܹ»×öʲô¡£
· ......

javaÏîÄ¿ java webÏîÄ¿Êý¾Ý¿âÂÒÂëÎÊÌâµÄ½â¾ö°ì·¨

×÷Ϊjava²ËÄñ£¬ÔÚѧϰµ½Êý¾Ý¿â²Ù×÷µÄʱºòÍùÍù»áÓöµ½Ò»¸öºÜÍ·Í´µÄÎÊÌ⣬Êý¾Ý¿âÖÐÎÄÂÒÂë¡£ÕâËƺõÊÇÿ¸öjava³ÌÐòÔ±Ôڳɳ¤¹ý³ÌÖж¼»áÓöµ½µÄÎÊÌ⣬ÏÂÃæÎҾͰÑÎÒ×Ô¼ºµÄ¼¸ÖÖ·½·¨ºÍ´ó¼Ò·ÖÏíһϡ££¨Ò»°ãÊÇÔÚMyEclipseÏ¿ª·¢£©
javaÏîÄ¿£º
Ê×ÏÈ£¬È·±£ÏîÄ¿µÄ±àÂëÊÇgbk»òutf-8(),ÔÚWindows->Preferences->General->Workplac ......

Java·ÀÖ¹SQL×¢Èë

 SQL×¢ÈëÊÇ×î³£¼ûµÄ¹¥»÷·½Ê½Ö®Ò»,Ëü²»ÊÇÀûÓòÙ×÷ϵͳ»òÆäËüϵͳµÄ©¶´À´ÊµÏÖ¹¥»÷µÄ,¶øÊdzÌÐòÔ±ÒòΪûÓÐ×öºÃÅжÏ,±»²»·¨
Óû§×êÁËSQLµÄ¿Õ×Ó,ÏÂÃæÎÒÃÇÏÈÀ´¿´ÏÂʲôÊÇSQL×¢Èë:
          ±ÈÈçÔÚÒ»¸öµÇ½½çÃæ,ÒªÇóÓû§ÊäÈëÓû§ÃûºÍÃÜÂë:
     & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ