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

ÎöJAVAÖ®À¬»ø»ØÊÕ»úÖÆ

¶ÔÓÚJAVA±à³ÌºÍºÜ¶àÀàËÆC¡¢C++ÓïÑÔÓÐÒ»¸ö¾Þ´óÇø±ð¾ÍÊÇÄÚ´æ²»ÐèÒª×Ô¼ºÈ¥free»òÕßdelete£¬¶øÊÇÓÉJVMÀ¬»ø»ØÊÕ»úÖÆÈ¥Íê³ÉµÄ¡£¶ÔÓÚÕâ¸ö¹ý³ÌºÜ¶àÈËÒ»Ö±±È½ÏãȻ»òÕß¾õµÃºÜÖÇÄÜ£¬Ê¹µÃÔÚд³ÌÐòµÄ¹ý³Ì²»Ì«¿¼ÂÇËüµÄ¸ÐÊÜ£¬Æäʵ֪µÀһЩÄÚÔÚµÄÔ­Àí£¬°ïÖúÎÒÃDZàд¸ü¼ÓÓÅÐãµÄ´úÂëÊǷdz£ÓбØÒªµÄ¡£
 
±¾ÎÄ´ÓÒÔϼ¸¸ö·½Ãæ½øÐвûÊö£º
1¡¢finalize()·½·¨
2¡¢System.gc()·½·¨¼°Ò»Ð©ÊµÓ÷½·¨
3¡¢JAVAÈçºÎÉêÇëÄڴ棬ºÍC¡¢C++ÓкÎÇø±ð
4¡¢JVMÈçºÎÑ°ÕÒµ½ÐèÒª»ØÊÕµÄÄÚ´æ
5¡¢JVMÈçºÎ»ØÊÕÄÚ´æµÄ£¨»ØÊÕËã·¨·Ö½âÏêÊö£©
6¡¢Ó¦Ó÷þÎñÆ÷²¿Êð¼°³£ÓòÎÊýÉèÖÃ
7¡¢À©Õ¹»°ÌâJIT£¨¼°Ê±±àÒë¼¼Êõ£©Óëlazy evaluation£¨¶èÐÔÆÀ¹À£©
 
 
1¡¢finalize()·½·¨£º
     ΪÁË˵Ã÷JVM»ØÊÕ£¬²»µÃ²»ÏÈ˵Ã÷Ò»¸öÎÊÌâ¾ÍÊǹØÓÚfinalize()·½·¨£¬ËùÓÐʵÌå¶ÔÏ󶼻áÓÐÕâ¸ö·½·¨£¬ÒòΪÕâ¸öObjectÀඨÒåµÄ£¬Õâ¸ö¿ÉÄܻᱻÈÏΪÊÇÀ¬»ø»ØÊյķ½·¨»òÕß½Ð×öÎö¹¹º¯Êý£¬Æäʵ²¢·ÇÈç´Ë¡£finalizeÔÚJVMÄÚ´æ»áÊÕÇ°»á±»µ÷Ó㨵¥²¢·Ç¾ø¶Ô£©£¬¶ø¼´Ê¹²»µ÷ÓÃËü£¬JVM»ØÊÕ»úÖÆͨ¹ýºóÃæËùÊöµÄһЩËã·¨¾Í¿ÉÒÔ¶¨Î»ÄÄЩÊÇÀ¬»øÄڴ棬ÄÇôÕâ¸öÄÃÀ´¸ÉʲôÓÃÄØ£¿finalize()ÆäʵÊÇÒª×öһЩÌØÊâµÄÄÚ´æ»ØÊÕ²Ù×÷£¬Èç¹û¶ÔJAVAÑо¿ÉÔ΢¶àÒ»µã£¬´ó¼Ò»á·¢ÏÖJAVAÖÐÓÐÒ»ÖÖJNIµÄ»úÖÆ£¬¼´£ºJava native interface£¬ÕâÖÖÊôÓÚJAVA±¾µØ½Ó¿Úµ÷Ó㬼´µ÷Óñ¾µØµÄÆäËûÓïÑÔÐÅÏ¢£¬JAVAÐéÄâ»úµ×²ãµôµ÷ÓÃÒ²ÊÇÕâÑùʵÏֵģ¬Õⲿ·Öµ÷ÓÃÖпÉÄÜ´æÔÚһЩ¶ÔC¡¢C++ÓïÑԵIJÙ×÷£¬ÔÚCºÍC++ÄÚ²¿Í¨¹ýnew¡¢malloc¡¢reallocµÈ¹Ø¼ü´Ê´´½¨µÄ¶ÔÏóÀ¬»ø»ØÊÕ»úÖÆÊÇÎÞÄÜΪÁ¦µÄ£¬ÒòΪÕâ²»ÊÇËüÒª¹ÜÀíµÄ·¶Î§£¬¶øƽʱÕâЩ¶ÔÏó¿ÉÄܱ»JAVA¶ÔÓ¦µÄʵÌåËùµ÷Óã¬ÄÇôÐèÒªÔÚ¶ÔÓ¦JAVA¶ÔÏó·ÅÆúʱ£¨²¢²»´ú±í»ØÊÕ£¬Ö»ÊdzÌÐòÖв»Ê¹ÓÃËüÁË£©È¥µ÷ÓöÔÓ¦µÄC¡¢C++ÌṩµÄ±¾µØ½Ó¿ÚÈ¥ÊÍ·ÅÕâ¶ÎÄÚ´æÐÅÏ¢£¬ËûÃǵÄÊÍ·ÅͬÑùÐèҪͨ¹ýfree»òdeleteÈ¥ÊÍ·Å£¬ËùÒÔÎÒÃÇÒ»°ãÇé¿öϲ»ÒªÀÄÓÃfinalize()£¬¿ÉÄÜÄã»áÁªÏëµ½ÁíÒ»ÀàijЩÌØÊâÒýÓöÔÏóµÄÊÍ·Å£¬Èç²ãÊýÒýÓÃÌ«¶à£¬JAVAÐéÄâ»úÓÐЩʱºò²»ÖªµÀÕâÒ»ÏߵĶÔÏóÊÇ·ñ¶¼¿ÉÄܱ»»ØÊÕÄÇô£¬Äã¿ÉÒÔ×Ô¼º½«finalize()ÖØд£¬²¢½«ÄÚÖöÔÏóµÄ¾ä±úÏÈÊͷŵô£¬ÕâÑùÒ²ÊÇûÓÐÎÊÌâµÄ£¬²»¹ýÒ»°ã²»ÒªÀÄÓöøÒÑ¡£
2¡¢System.gc()»òÕßRuntime.getRuntime().gc();
Õâ¸ö¿ÉÒÔ±»ÈÏΪÊÇÇ¿ÖÆÀ¬»ø»ØÊÕµÄÒ»ÖÖ»úÖÆ£¬µ«ÊDz¢·ÇÇ¿ÖÆ»ØÊÕ£¬Ö»ÊÇÏòJVM½¨Òé¿ÉÒÔ½øÐÐÀ¬»ø»ØÊÕ£¬¶øÇÒÀ¬»ø»ØÊյĵط½ºÍ¶àÉÙÊDz»ÄÜÏñCÓïÑÔÒ»Ñù¿ØÖÆ£¬ÕâÊÇJVMÀ¬»ø»ØÊÕ»úÈ¥¿ØÖƵġ£³ÌÐòÖо¡Á¿²»ÒªÊÇÈ¥Ê


Ïà¹ØÎĵµ£º

JNAʵÏÖJavaµ÷ÓÃFortran

Ôڳɹ¦ÊµÏÖJavaµ÷ÓÃC++Ö®ºó£¬½ÓÏÂÀ´Ïëµ½ÄÜ·ñͨ¹ýJNAʵÏÖJavaµ÷ÓÃFortran£¬½ñÌìÊÔÑéÁËһϣ¬»¹ÊDZȽÏÈÝÒ׵ġ£
ÍøÉÏÓÐÒ»¸öJavaµ÷ÓÃF95µÄÀý×Ó£¬µ«ÊÇÎÒ¿¼ÂDz»½öҪʵÏÖF95µÄµ÷Ó㬻¹ÒªÊµÏÖF77µÄµ÷Óã¬ËùÒÔ·ÑÁËһЩÖÜÕÛ¡£
ÎÊÌâµÄ¹Ø¼üÔÚÓÚF77Ϊ¹ý³ÌÃû×Ô¶¯Ìí¼ÓÁËÒ»¸öβ²¿µÄÏ»®Ïߣ¬ËùÒÔsub1Õâ¸ö¹ý³Ì£¬µ½JavaÒ»¶Ë£¬¾Í±ä³ÉÁËsub1_£¬ ......

javaÖÐÈçºÎʹÓÃamcharts


×î½ü¹«Ë¾Åöµ½ÐèÒªÓÃͼ±íµÄÐÎʽÏÔʾһЩÊý¾Ý£¬ÎҾͿªÊ¼µ½ÍøÉϲéѯ£¬²éµ½ÁËjfreechartºÍamcharts,ÕâÁ½ÕßÎÒ¶¼ÊµÏÖ¹ýÁË£¬jfreechart×îºóÉú³ÉͼƬ£¬µ«ÊÇͼƬЧ¹û²»ÊÇÎÒÏëÒªµÄ£¬È»ºóÓÖÑо¿amcharts ËüµÄЧ¹ûȷʵºÜºÃ£¬¶øÇÒ¹Ù·½ÍøÕ¾ÉÏ»¹ÓкÃЩÀý×ӿɹ©ÏÂÔØ£¬ÍøÖ·ÊÇ:www.amcharts.com
£¨ÏëÒªÍê³ÉÒ»¸öamchartsͼÐÎÐèÒªswfobjects. ......

µãµãµÎµÎ(Java)

native2ascii
    ÔÚWINDOWSƽ̨ϱàдµÄ×ÊÔ´Îļþ,ÒÔGB2312·½Ê½±àÂë,ÔÚ±àÒëʱÐèҪתÂë,ÒÔÈ·±£ÔÚ¸÷¸öƽ̨ÉϵÄÕýÈ·ÐÔ
    ±àÂë:
        native2ascii -encoding utf8 temp.properties ApplicationResources_zh_CN.properties
 &n ......

Java»ù´¡Àà¿â¼ò½é

JavaÒÔ»ù´¡Àà¿âJFC£¨Java Foundation Class£©µÄÐÎʽΪ³ÌÐòÔ±Ìṩ±à³Ì½Ó¿ÚAPI£¬Àà¿âÖеÄÀà°´ÕÕÓÃ;¹éÊôÓÚ²»Í¬µÄ°üÖС£
£¨Ò»£©java.lang°ü
¡¡¡¡Java×î³£Óõİü¶¼ÊôÓڸðü£¬³ÌÐò²»ÐèҪעÈë´Ë°ü£¬¾Í¿ÉÒÔʹÓøðüÖеÄÀ࣬ÀûÓÃÕâЩÀà¿ÉÒÔÉè¼Æ×î»ù±¾µÄJava³ÌÐò¡£
¡¡¡¡StringÀ࣬ÌṩÁË×Ö·û´®Á¬½Ó¡¢±È½Ï¡¢×Ö·û¶¨Î»¡¢×Ö·û´®´òÓ¡µ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ