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

java퉀
ÏÈÉùÃ÷һϣ¬ÌâÄ¿Ô­³öÓÚ£ºhttp://gocom.primeton.com/modules/newbb/item60284_60284.htm
JVMÊÇJava³ÌÐòµÄÔËÐл·¾³£¬Òò´Ë¶ÔÓÚJVMµÄÕÆÎÕÓÐÖúÓÚÀí½âJava³ÌÐòµÄÖ´ÐÐÒÔ¼°±àд£¬ÓÈÆäÊÇÔËÐÐʱÅöµ½µÄһЩ¹îÒìÎÊÌ⣬ÄÇôÔõôÑùÄÜ¿¼²ì×Ô¼º¶ÔÓÚJVM¹Ø¼ü֪ʶµãµÄÕÆÎÕÇé¿ö£¬°ïÖúѧϰJVM»úÖÆÄØ£¬ÔÚÕâƪblogÖÐÀ´Ì½ÌÖÏ¡£
¶ÔÓÚJava³ÌÐò¶øÑÔ£¬JVMµÄ¹Ø¼ü»úÖÆÓУº×Ö½ÚÂëµÄ¼ÓÔØ¡¢·½·¨µÄÖ´ÐС¢¶ÔÏóÄÚ´æµÄ·ÖÅäºÍ»ØÊÕ¡¢Ï̺߳ÍËø»úÖÆ£¬Õ⼸¸ö»úÖÆÉæ¼°µ½µÄjvmµÄ֪ʶµãԶûÓÐдÕ⼸¸ö×ÖÕâô¼òµ¥£¬ÀïÃæµÄ¸´ÔӶȻ¹ÊǷdz£¸ßµÄ¡£
×Ö½ÚÂëµÄ¼ÓÔØ
JVMͨ¹ýClassLoaderÀ´Íê³É×Ö½ÚÂëµÄ¶¯Ì¬¼ÓÔØ£¬ÕâÀïÃæÉæ¼°µ½µÄÖ÷ÒªÊÇClassLoaderµÄË«Ç×ίÅÉ¡¢ClassLoaderµÄ±àд·½·¨¡¢ClassÊÇ·ñ±»¼ÓÔصÄΨһ±êʶÒÔ¼°ClassµÄ¼ÓÔعý³Ì¡£
ÔÚ¿¼²ìµÄʱºòÎÒ¾õµÃ¿ÉÒÔÒÔÕâôÁ½µÀ¼òµ¥µÄÌâÀ´¿¼²ì£º
1¡¢Ð´Ò»¶Î½«Ä¿Â¼ÖÐÖ¸¶¨µÄ.classÎļþ¼ÓÔص½JVMµÄ³ÌÐò£¬²¢Í¨¹ýClass¶ÔÏó»ñÈ¡µ½ÍêÕûÀàÃûµÈÐÅÏ¢£»
2¡¢Ò»¶Îչʾ´úÂ룬ÀïÃæ°üº¬Ò»¸öÈ«¾Ö¾²Ì¬ÕûÐͱäÁ¿£¬ÎÊÈç¹ûÓÃÁ½¸öClassLoader¼ÓÔش˶ÔÏó£¬Ö´ÐÐÕâ¸öÕûÐͱäÁ¿++²Ù×÷ºó½á¹û»áÊÇÔõôÑùµÄ£¿
·½·¨µÄÖ´ÐÐ
JVMÓÐ×Ô¼ºµÄÒ»Ì×Ö¸Áîϵͳ£¬×Ö½ÚÂëÖм´ÒѾ­ÊÇÖ¸ÁîÁË£¬ÐèÒª´ó¸ÅÕÆÎÕÁËJVM¶Ôstatic¡¢interface¡¢instance¡¢¹¹ÔìÆ÷²ÉÓõIJ»Í¬µÄÖ´Ðз½·¨£¬ÁíÍâ¾ÍÊÇJVMÖз´ÉäµÄʵÏÖ£¨¿ÉÒÔÒÔSun JDKÀ´¾ÙÀý£©¡¢¶¯Ì¬´úÀíµÄʵÏÖ£¬×îºóÏà¹ØµÄ¾ÍÊÇJVMÖ´ÐÐ×Ö½ÚÂëµÄ·½Ê½£¨½âÊÍ¡¢JIT¡¢Hotspot£©£¬ÒÔ¼°Ê²Ã´Ê±ºò´¥·¢±àÒë³É»úÆ÷Â룬ÈçºÎ¿ØÖÆ¡£
ÔÚ¿¼²ìµÄʱºòÎÒ¾õµÃ¿ÉÒÔÒÔÕâôÈýµÀÌâÀ´¿¼²ì£º
1¡¢A a=new A();a.execute();ºÍIA a=new A();a.execute();Ö´ÐÐÓÐʲô²»Í¬£»
2¡¢·´ÉäµÄÐÔÄܵ͵ÄÔ­ÒòÊÇ£¿
3¡¢±àдһ¶Î³ÌÐò£¬¶¯Ì¬µÄ´´½¨Ò»¸ö½Ó¿ÚµÄʵÏÖ£¬²¢¼ÓÔص½JVMÖÐÖ´ÐУ»£¨¿ÉÒÔÔÊÐíÓÃBCELµÈ¹¤¾ß£©
¶ÔÏóÄÚ´æµÄ·ÖÅäºÍ»ØÊÕ
Õâ¿éÉæ¼°µÄ֪ʶµãÒ²ÊDZȽϵĶ࣬ÀýÈçJVMÄÚ´æÇøÓòµÄ»®·Ö¡¢×ÔÈ»ÀàÐͺÍÒýÓÃÀàÐ͵ÄÄÚ´æ·ÖÅäµÄ²»Í¬¡¢TLAB¡¢GCµÄËã·¨¡¢Sun JDK¶ÔÓÚGCµÄʵÏÖ¡¢GC´¥·¢µÄʱ»ú¡¢GCµÄ¸ú×ٺͷÖÎöµÄ·½·¨¡£
ÔÚ¿¼²ìµÄʱºòÎÒ¾õµÃ¿ÉÒÔÒÔÕâôÈýµÀÌâÀ´¿¼²ì£º
1¡¢¾­µäµÄString±È½Ï³ÌÐòÌ⣺
   String a="a";
   String b="b";
   String ab="ab";
   (a+b)==ab;  ??  (ÒýÉîÌ⣬ÈçºÎ²ÅÄÜÈÃ(a+b)==ab£©
   ("a"+"b")==ab; ?? 
2¡¢Ð´Ò»¶Î³ÌÐò£¬ÈÃÆäOutOfMemory£¬»òƵ·±Ö´ÐÐMinor GC£¬µ«ÓÖ²»´¥·¢Full GC£¬ÓÖ»òƵ·±Ö´ÐÐFull GC£¬µ«²»Ö´ÐÐminor GC£¬¶øÇÒ²


Ïà¹ØÎĵµ£º

Javaѧϰ·Ïß

Javaѧϰ·Ïß
ÏÈѧϰj2se
Ҫѧϰj2ee¾ÍÒªÏÈѧϰj2se£¬¸Õ¿ªÊ¼Ñ§Ï°j2seÏȽ¨Ò鲻ҪʹÓÃIDE£¬È»ºó½¥½¥µÄ¹ý¶Éµ½Ê¹ÓÃIDE¿ª·¢£¬±Ï¾¹ÓÃËü·½±ãÂѧϰj2seÍƼöÁ½±¾Ê飬¡¶java2ºËÐļ¼ÊõÒ»¶þ¾í¡·£¬¡¶java±à³Ì˼Ïë¡·£¬¡¶javaģʽ¡·¡£ÆäÖС¶java±à³Ì˼Ïë¡·ÒªÑжÁ£¬¾«¶Á¡£ÕâÒ»¶Îʱ¼äÊÇ»ù±¾¹¦Ñ§Ï°£¬Ê±¼ä»áºÜ³¤£¬Ò²¿ÉẠ̈ܺܶ¬ÕâÒª¿´Ñ§Ï ......

Java³ÌÐòÔ±ÃæÊÔ±ØÎʵÄÌâÄ¿£¬Äã»á¼¸µÀ£¿

       µÚÒ»£¬Ì¸Ì¸final, finally, finalizeµÄÇø±ð¡£ 
¡¡¡¡µÚ¶þ£¬Anonymous Inner Class (ÄäÃûÄÚ²¿Àà) ÊÇ·ñ¿ÉÒÔextends(¼Ì³Ð)ÆäËüÀ࣬ÊÇ·ñ¿ÉÒÔimplements(ʵÏÖ)interface(½Ó¿Ú)? 
¡¡¡¡µÚÈý£¬Static Nested Class ºÍ Inner ClassµÄ²»Í¬£¬ËµµÃÔ½¶àÔ½ºÃ(ÃæÊÔÌâÓеĺÜÁýͳ)¡£ 
¡¡¡¡µÚËÄ£ ......

java±àÂëת»»

³£¼ûµÄJAVA³ÌÐò°üÀ¨ÒÔÏÂÀà±ð£º
*Ö±½ÓÔÚconsoleÉÏÔËÐеÄÀà(°üÀ¨¿ÉÊÓ»¯½çÃæµÄÀà)
*JSP´úÂëÀࣨע£ºJSPÊÇServletsÀàµÄ±äÐÍ£©
*ServeletsÀà
*EJBÀà
*ÆäËü²»¿ÉÒÔÖ±½ÓÔËÐеÄÖ§³ÖÀà
 
ÕâЩÀàÎļþÖУ¬¶¼ÓпÉÄܺ¬ÓÐÖÐÎÄ×Ö·û´®£¬²¢ÇÒ³£ÓÃÇ°ÈýÀàJAVA³ÌÐòºÍÓû§Ö±½Ó½»»¥£¬ÓÃÓÚÊä³öºÍÊäÈë×Ö·û£¬È磺ÔÚJSPºÍServletÖеõ½¿Í»§ ......

java¶þ·Ö²éÕÒ

¶þ·Ö²éÕÒ£º
   ¶þ·Ö²éÕÒ±ÈÏßÐÔ²éÕÒÊý¶ÈÒªºÃºÜ¶à£¬ÓÈÆäÊǶԴóÊý×éÀ´Ëµ¸üΪÏÔÖø£¬¾ÍÏñÊDzÂ×ÖÓÎÏ·Ò»Ñù
²Â×ÖÓÎÏ·£º
   ¶þ·Ö²éÕҵķ½·¨ºÍÎÒÃÇСʱºòÍæµÄ²Â×ÖÓÎÏ·ÊÇÒ»ÑùµÄ¡£ÔÚÕâ¸öÓÎÏ·ÀïÃ棬ÓÐÒ»¸öСÅóÓÑ»áÈÃÄã²ÂËýÕýÔÚÏëµÄÒ»¸ö1ÖÁ100Ö®¼äµÄÊý£¬
Äã²ÂÁËÒ»¸öÊýÒÔºó£¬Ëý»á¸æËßÄãÈýÖÖÑ¡ÔñÖеÄÒ»¸ö£ºÄã² ......

ÓÃInstallAnywhere´ò°üJava³ÌÐò°üº¬MySQLÊý¾Ý¿â

ÓÃInstallAnywhere´ò°üJava³ÌÐò°üº¬MySQLÊý¾Ý¿â
 
InstallAnywhere´ò°üJava³ÌÐòʱ¿ÉÒÔ×Ô¶¯Íê³ÉjreµÄ´ò°ü£¬µ«ÊÇÐèÒªMySQLÊý¾Ý¿âµÄ³ÌÐò¾ÍµÃÊÖ¶¯Ìí¼Ó¡£×ÊÁÏÌ«ÉÙ£¬¾À½áÁËÈýÌ죬ÖÕÓÚ½â¾ö
 
1¡¢  ÏÂÔØÂÌÉ«°æµÄMySQL£¬¿ÉÒÔÈ¥¹ÙÍøÏÂÔØ¡£ÍøÓÑÖÆ×÷ÁËMySQLµÄÂÌÉ«¾«¼òBat°æ£¨http://download.csdn.net/source/524812 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ