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

Javaѧϰ±Ê¼Ç¢Ý JavaÐéÄâ»úµÄ¹¤×÷Ô­Àí £¨¶þ£©

°Ë¡¢¶Ñ
     µ±Java³ÌÐò´´½¨Ò»¸öÀàµÄʵÀý»òÕßÊý×éʱ£¬¶¼ÔÚ¶ÑÖÐΪеĶÔÏó·ÖÅäÄÚ´æ¡£ÐéÄâ»úÖÐÖ»ÓÐÒ»¸ö¶Ñ£¬ËùÓеÄÏ̶߳¼¹²ÏíËü¡£
     1¡¢À¬»øÊÕ¼¯£¨Garbage Collection£©
     À¬»øÊÕ¼¯ÊÇÊÍ·ÅûÓб»ÒýÓõĶÔÏóµÄÖ÷Òª·½·¨¡£ËüÒ²¿ÉÄÜ»áΪÁ˼õÉٶѵÄËéƬ£¬¶øÒƶ¯¶ÔÏó¡£ÔÚJavaÐéÄâ»úµÄ¹æ·¶ÖÐûÓÐÑϸñ¶¨ÒåÀ¬»øÊÕ¼¯£¬Ö»ÊǶ¨ÒåÒ»¸öJavaÐéÄâ»úµÄʵÏÖ±ØÐëͨ¹ýijÖÖ·½Ê½¹ÜÀí×Ô¼ºµÄ¶Ñ¡£ÏêÇé²Î¼ûµÚ¾ÅÕ“Garbage Collection”¡£
     2¡¢¶ÔÏó´æ´¢½á¹¹£¨Object Representation£©
     JavaÐéÄâ»úµÄ¹æ·¶ÖÐûÓж¨Òå¶ÔÏóÔõÑùÔÚ¶ÑÖд洢¡£Ã¿Ò»¸ö¶ÔÏóÖ÷Òª´æ´¢µÄÊÇËûµÄÀàºÍ¸¸ÀàÖж¨ÒåµÄ¶ÔÏó±äÁ¿¡£¶ÔÓÚ¸ø¶¨µÄ¶ÔÏóµÄÒýÓã¬ÐéÄâ»ú±ØÐëÄÛññºÜ¿ìµÄ ¶¨Î»µ½Õâ¸ö¶ÔÏóµÄÊý¾Ý¡£ÁíΪ£¬±ØÐëÌṩһÖÖͨ¹ý¶ÔÏóµÄÒýÓ÷½·¨¶ÔÏóÊý¾ÝµÄ·½·¨£¬±ÈÈç·½·¨ÇøÖеĶÔÏóµÄÒýÓã¬ËùÒÔÒ»¸ö¶ÔÏó±£´æµÄÊý¾ÝÖÐÍùÍùº¬ÓÐÒ»¸öijÖÖÐÎʽ Ö¸Ïò·½·¨ÇøµÄÖ¸Õë¡£
     Ò»¸ö¿ÉÄܵĶѵÄÉè¼ÆÊǽ«¶Ñ·ÖΪÁ½¸ö²¿·Ö£ºÒýÓóغͶÔÏó³Ø¡£Ò»¸ö¶ÔÏóµÄÒýÓþÍÊÇÖ¸ÏòÒýÓóصı¾µØÖ¸Õ롣ÿһ¸öÒýÓóØÖеÄÌõÄ¿¶¼°üº¬Á½¸ö²¿·Ö£ºÖ¸Ïò¶ÔÏó³ØÖÐ¶Ô ÏóÊý¾ÝµÄÖ¸ÕëºÍ·½·¨ÇøÖжÔÏóÀàÊý¾ÝµÄÖ¸Õë¡£ÕâÖÖÉè¼ÆÄܹ»·½±ãJavaÐéÄâ»ú¶ÑËéƬµÄÕûÀí¡£µ±ÐéÄâ»úÔÚ¶ÔÏó³ØÖÐÒƶ¯Ò»¸ö¶ÔÏóµÄʱºò£¬Ö»ÐèÒªÐ޸ĶÔÓ¦ÒýÓóØÖÐ µÄÖ¸ÕëµØÖ·¡£µ«ÊÇÿ´Î·ÃÎʶÔÏóµÄÊý¾Ý¶¼ÐèÒª´¦ÀíÁ½´ÎÖ¸Õë¡£ÏÂͼÑÝʾÁËÕâÖֶѵÄÉè¼Æ¡£ÔÚµÚ¾ÅÕµēÀ¬»øÊÕ¼¯”ÖеÄHeapOfFish AppletÑÝʾÁËÕâÖÖÉè¼Æ¡£ 
     ÁíÒ»ÖֶѵÄÉè¼ÆÊÇ£ºÒ»¸ö¶ÔÏóµÄÒýÓþÍÊÇÒ»¸öÖ¸ÏòÒ»¶ÑÊý¾ÝºÍÖ¸ÏòÏàÓ¦¶ÔÏóµÄÆ«ÒÆÖ¸Õë¡£ÕâÖÖÉè¼Æ·½±ãÁ˶ÔÏóµÄ·ÃÎÊ£¬¿ÉÊǶÔÏóµÄÒƶ¯Òª±äµÄÒì³£¸´ÔÓ¡£ÏÂͼÑÝʾÁËÕâÖÖÉè¼Æ 
     µ±³ÌÐòÊÔͼ½«Ò»¸ö¶ÔÏóת»»ÎªÁíÒ»ÖÖÀàÐÍʱ£¬ÐéÄâ»úÐèÒªÅжÏÕâÖÖת»»ÊÇ·ñÊÇÕâ¸ö¶ÔÏóµÄÀàÐÍ£¬»òÕßÊÇËûµÄ¸¸ÀàÐÍ¡£µ±³ÌÐòÊÊÓÃinstanceofÓï¾äµÄʱºòÒ² »á×öÀàËƵÄÊÂÇé¡£µ±³ÌÐòµ÷ÓÃÒ»¸ö¶ÔÏóµÄ·½·¨Ê±£¬ÐéÄâ»úÐèÒª½øÐж¯Ì¬°ó¶¨£¬Ëû±ØÐëÅжϵ÷ÓÃÄÄÒ»¸öÀàÐ͵ķ½·¨¡£ÕâÒ²ÐèÒª×öÉÏÃæµÄÅжϡ£
     ÎÞÂÛÐéÄâ»úʵÏÖÕßʹÓÃÄÄÒ»ÖÖÉè¼Æ£¬Ëû¶¼¿ÉÄÜΪÿһ¸ö¶ÔÏó±£´æÒ»¸öÀàËÆ·½·¨ÁбíµÄÐÅÏ¢¡£ÒòΪËû¿ÉÒÔÌáÉý¶ÔÏó·½·¨µ÷ÓõÄËٶȣ¬¶ÔÌáÉýÐéÄâ»úµÄÐÔÄܷdz£ÖØÒª£¬µ« ÊÇÐéÄâ»úµÄ¹æ·¶ÖбÈûÓÐÒªÇó±ØÐëʵÏÖÀàËƵ


Ïà¹ØÎĵµ£º

javaÓïÑÔ for ArcGis¼òµ¥»æͼ

package demo1;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.LayoutManager;
import java.awt.event.ActionEvent;
import ......

»ùÓÚ JVMTI ʵÏÖ Java Ï̵߳ļà¿Ø

¼¶±ð£º Öм¶
Àî Áè
, Èí¼þ¼Ü¹¹Ê¦, IBM
2009 Äê 12 ÔÂ 10 ÈÕ
Ëæ
×ŶàºË CPU µÄÈÕÒæÆÕ¼°£¬Ô½À´Ô½¶àµÄ Java
Ó¦ÓóÌÐòʹÓöàÏ̲߳¢ÐмÆËãÀ´³ä·Ö·¢»ÓÕû¸öϵͳµÄÐÔÄÜ¡£¶àÏ̵߳ÄʹÓÃÒ²¸øÓ¦ÓóÌÐò¿ª·¢ÈËÔ±´øÀ´Á˾޴óµÄÌôÕ½£¬²»ÕýÈ·µØʹÓöàÏ߳̿ÉÄÜÔì³ÉÏß³ÌËÀËø»ò×ÊÔ´¾º
Õù£¬µ¼ÖÂϵͳ̱»¾¡£Òò´Ë£¬ÐèÒªÒ»ÖÖÔËÐÐʱÏ̼߳à¿Ø¹¤ ......

java Ëæ»ú²úÉú×Ö·û´®

ת×Ô £º http://hi.baidu.com/samuel_vong/blog/item/95471f7e2cdab33d0cd7dad1.html
/**
   * ²úÉúËæ»ú×Ö·û´®
   * */
private static Random randGen = null;
private static char[] numbersAndLetters = null;
private static Object initLock = new Object();
public static final Strin ......

JAVA·´ÉäºÍCLASSÀà


¸ÐлԭÎÄ×÷Õß:http://blog.sina.com.cn/s/blog_62a6ceb10100gwe0.html
 
JAVAÆäʵ²»ËãÊÇÒ»ÃŶ¯Ì¬ÓïÑÔ£¬µ«JAVAÖÐÈ´ÓÖÒ»ÖÖ»úÖÆ¿ÉÒÔ´ïµ½¶¯Ì¬µÄijÖÐЧ¹û£¬Õâ¾ÍÊÇJAVAÖеķ´Éä¡£
     JAVA·´ÉäÖ¸µÄÊÇÎÒÃÇ¿ÉÒÔÓÚÔËÐÐʱ¼ÓÔØ¡¢Ì½Öª¡¢Ê¹ÓñàÒëÆÚ¼äÍêȫδ֪µÄclasses¡£
     ¶¼Ja ......

JavaÖÐ×Ö·û´®£¨String£©µÄ´æ´¢ºÍ¸³ÖµÔ­Àí

¿ÉÄܺܶàjavaµÄ³õѧÕ߶ÔStringµÄ´æ´¢ºÍ¸³ÖµÓÐÃÔ»ó£¬ÒÔÏÂÊÇÒ»¸öºÜ¼òµ¥µÄ²âÊÔÓÃÀý£¬ÄãÖ»ÐèÒª»¨¼¸·ÖÖÓʱ¼ä±ã¿ÉÀí½â¡£
1.ÔÚ¿´Àý×Ó֮ǰ£¬È·±£ÄãÀí½âÒÔϼ¸¸öÊõÓ
 
Õ» £ºÓÉJVM·ÖÅäÇøÓò£¬ÓÃÓÚ±£´æÏß³ÌÖ´ÐеĶ¯×÷ºÍÊý¾ÝÒýÓá£Õ»ÊÇÒ»¸öÔËÐеĵ¥Î»£¬JavaÖÐÒ»¸öÏ߳̾ͻáÏàÓ¦ÓÐÒ»¸öÏß³ÌÕ»ÓëÖ®¶ÔÓ¦¡£
 
¶Ñ £ºÓÉJVM·ÖÅä ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ