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

javaÏ̳߳Ø

 1.ΪʲôҪʹÓÃÏ̳߳Ø
     ÔÚjavaÖУ¬Èç¹ûÿ¸öÇëÇóµ½´ï¾Í´´½¨Ò»¸öÐÂỊ̈߳¬¿ªÏúÊÇÏ൱´óµÄ¡£ÔÚʵ¼ÊʹÓÃÖУ¬·þÎñÆ÷ÔÚ´´½¨ºÍÏú»ÙÏß³ÌÉÏ»¨·ÑµÄʱ¼äºÍÏûºÄµÄϵͳ×ÊÔ´¶¼Ï൱´ó£¬ÉõÖÁ¿ÉÄÜÒª±ÈÔÚ´¦Àíʵ¼ÊµÄÓû§ÇëÇóµÄʱ¼äºÍ×ÊÔ´Òª¶àµÄ¶à¡£³ýÁË´´½¨ºÍÏú»ÙÏ̵߳ĿªÏúÖ®Í⣬»î¶¯µÄÏß³ÌÒ²ÐèÒªÏûºÄϵͳ×ÊÔ´¡£Èç¹ûÔÚÒ»¸öjvmÀï´´½¨Ì«¶àµÄỊ̈߳¬¿ÉÄÜ»áʹϵͳÓÉÓÚ¹ý¶ÈÏûºÄÄÚ´æ»ò“Çл»¹ý¶È”¶øµ¼ÖÂϵͳ×ÊÔ´²»×㡣ΪÁË·ÀÖ¹×ÊÔ´²»×㣬·þÎñÆ÷Ó¦ÓóÌÐòÐèÒª²ÉȡһЩ°ì·¨À´ÏÞÖÆÈκθø¶¨Ê±¿Ì´¦ÀíµÄÇëÇóÊýÄ¿£¬¾¡¿ÉÄܼõÉÙ´´½¨ºÍÏú»ÙÏ̵߳ĴÎÊý£¬ÌرðÊÇһЩ×ÊÔ´ºÄ·Ñ±È½Ï´óµÄÏ̵߳Ĵ´½¨ºÍÏú»Ù£¬¾¡Á¿ÀûÓÃÒÑÓжÔÏóÀ´½øÐзþÎñ£¬Õâ¾ÍÊÇ“³Ø»¯×ÊÔ´”¼¼Êõ²úÉúµÄÔ­Òò¡£
     Ï̳߳ØÖ÷ÒªÓÃÀ´½â¾öÏß³ÌÉúÃüÖÜÆÚ¿ªÏúÎÊÌâºÍ×ÊÔ´²»×ãÎÊÌ⡣ͨ¹ý¶Ô¶à¸öÈÎÎñÖظ´Ê¹ÓÃỊ̈߳¬Ï̴߳´½¨µÄ¿ªÏú¾Í±»·Ö̯µ½Á˶à¸öÈÎÎñÉÏÁË£¬¶øÇÒÓÉÓÚÔÚÇëÇóµ½´ïʱÏß³ÌÒѾ­´æÔÚ£¬ËùÒÔÏû³ýÁËÏ̴߳´½¨Ëù´øÀ´µÄÑÓ³Ù¡£ÕâÑù£¬¾Í¿ÉÒÔÁ¢¼´ÎªÇëÇó·þÎñ£¬Ê¹ÓÃÓ¦ÓóÌÐòÏìÓ¦¸ü¿ì¡£ÁíÍ⣬ͨ¹ýÊʵ±µÄµ÷ÕûÏß³ÌÖеÄÏß³ÌÊýÄ¿¿ÉÒÔ·ÀÖ¹³öÏÖ×ÊÔ´²»×ãµÄÇé¿ö¡£
2.Ï̳߳صÄ×é³É²¿·Ö
    Ò»¸ö±È½Ï¼òµ¥µÄÏ̳߳ØÖÁÉÙÓ¦°üº¬Ï̳߳عÜÀíÆ÷¡¢¹¤×÷Ï̡߳¢ÈÎÎñÁжӡ¢ÈÎÎñ½Ó¿ÚµÈ²¿·Ö¡£ÆäÖÐÏ̳߳عÜÀíÆ÷µÄ×÷ÓÃÊÇ´´½¨¡¢Ïú»Ù²¢¹ÜÀíÏ̳߳أ¬½«¹¤×÷Ï̷߳ÅÈëÏ̳߳ØÖУ»¹¤×÷Ïß³ÌÊÇÒ»¸ö¿ÉÒÔÑ­»·Ö´ÐÐÈÎÎñµÄỊ̈߳¬ÔÚûÓÐÈÎÎñÊǽøÐеȴý£»ÈÎÎñÁжӵÄ×÷ÓÃÊÇÌṩһÖÖ»º³å»úÖÆ£¬½«Ã»Óд¦ÀíµÄÈÎÎñ·ÅÔÚÈÎÎñÁжÓÖУ»ÈÎÎñ½Ó¿ÚÊÇÿ¸öÈÎÎñ±ØÐëʵÏֵĽӿڣ¬Ö÷ÒªÓÃÀ´¹æ¶¨ÈÎÎñµÄÈë¿Ú¡¢ÈÎÎñÖ´ÐÐÍêºóµÄÊÕβ¹¤×÷¡¢ÈÎÎñµÄÖ´ÐÐ״̬µÈ£¬¹¤×÷Ïß³Ìͨ¹ý¸Ã½Ó¿Úµ÷¶ÈÈÎÎñµÄÖ´ÐС£
      Ï̳߳عÜÀíÆ÷ÖÁÉÙÓÐÏÂÁй¦ÄÜ£º´´½¨Ï̳߳أ¬Ïú»ÙÏ̳߳أ¬Ìí¼ÓÐÂÈÎÎñ¡£
      ¹¤×÷Ïß³ÌÊÇÒ»¸ö¿ÉÒÔÑ­»·Ö´ÐÐÈÎÎñµÄỊ̈߳¬ÔÚûÓÐÈÎÎñʱ½«µÈ´ý¡£
      ÈÎÎñ½Ó¿ÚÊÇΪËùÓÐÈÎÎñÌṩͳһµÄ½Ó¿Ú£¬ÒԱ㹤×÷Ï̴߳¦Àí¡£ÈÎÎñ½Ó¿ÚÖ÷Òª¹æ¶¨ÁËÈÎÎñµÄÈë¿Ú£¬ÈÎÎñÖ´ÐÐÍêºóµÄÊÕβ¹¤×÷£¬ÈÎÎñµÄÖ´ÐÐ״̬µÈ¡£
3.Ï̳߳ØÊʺÏÓ¦Óõij¡ºÏ
      µ±Ò»¸ö·þÎñÆ÷½ÓÊܵ½´óÁ¿¶ÌСÏ̵߳ÄÇëÇóʱ£¬Ê¹ÓÃÏ̳߳ؼ¼ÊõÊǷdz£ºÏÊʵģ¬Ëü¿ÉÒÔ´ó´ó¼õÉÙÏ̵߳Ĵ´½¨ºÍÏú»Ù´ÎÊý£¬Ìá¸ß·þÎñÆ÷µÄ¹¤×÷ЧÂÊ¡£µ«ÊÇÏß³ÌÒªÇóµÄÔ˶¯Ê±¼ä±È½Ï³¤£¬¼´Ï̵߳ÄÔËÐÐʱ¼ä±È´


Ïà¹ØÎĵµ£º

JAVA²¢·¢±à³Ì±Ê¼Ç£¨3£©

Publication and Escape ·¢²¼Ò»¸ö¶ÔÏóÒâζ×ÅÄܹ»´ÓËüÄܹ»´ÓËüµ±Ç°·¶Î§Ö®Íâ±»·ÃÎʵ½¡£±ÈÈ磬±£´æ¿ÉÒÔ±»ÆäËû´úÂëÕÒµ½µÄÕâ¸ö¶ÔÏóµÄÒ»¸öÒýÓ㬻òÕß½«Æä×÷Ϊһ¸ö·Ç˽Óз½·¨µÄ·µ»ØÖµ£¬»òÕß½«Æä×÷Ϊ²ÎÊý´«µÝ¸øÆäËüµÄÀà¡£ public static Set<Secret> knownSecrets;
public void initialize() {
knownSecrets = new Ha ......

JavaµÄÀ༯


Collection:ÊÇ´æ·ÅÒ»×éµ¥ÖµµÄ×î´ó½Ó¿Ú£¬Ã¿¸öÖµ¶¼ÊÇÒ»¸ö¶ÔÏó£¬Ò»°ã²»»áÖ±½ÓʹÓÃCollection½Ó¿Ú
List£ºÊÇCollectionµÄ×Ó½Ó¿Ú£¬¶ÔCollection½øÐÐÁË´óÁ¿µÄÀ©³ä£¬ÀïÃæ´æ·ÅµÄÄÚÈÝ¿ÉÒÔÖظ´
Set£ºÊÇCollectionµÄ×ÓÀ࣬ûÓжÔCollection½øÐÐÀ©³ä£¬ÀïÃæ´æ·ÅµÄÄÚÈݲ»ÔÊÐíÖظ´
Map£ºÊÇ´æ·ÅÒ»¶ÔÖµµÄ×î´ó½Ó¿Ú£¬½Ó¿ÚÖÐÿ¸öÔªËض¼ÊÇÒ»¶ ......

JavaÀàµÄ³õʼ»¯Ë³Ðò

JavaÀàµÄ³õʼ»¯Ë³Ðò
¡¡¡¡ÎÒ°ÑJavaÀàµÄ³õʼ»¯Ë³Ðò·ÖΪÁ½²¿·Ö¡£µÚÒ»²¿·ÖÊÇÀàµÄ³õʼ»¯£¬µÚ¶þ²¿·ÖÊǶÔÏóµÄ³õʼ»¯¡£
¡¡¡¡ÔÚ³õʼ»¯Ö®Ç°JVM±ØÐëÏȰѸÃÀàµÄ×Ö½ÚÂë¼ÓÔص½ÄÚ´æÖÐÀ´¡£Õâʱ²»¹Ü´´²»´´½¨¶ÔÏ󶼻áÂíÉÏÖ´ÐÐÀàµÄ³õʼ»¯£º
¡¡¡¡Ö´Ðо²Ì¬³õʼ»¯±í´ïʽ£¨Èçstatic int a = 10£©ºÍ¾²Ì¬³õʼ»¯¿é£¨¼´static£û£ýÖеÄÄÚÈÝ£©£¬×¢ÒâÁ½ ......

[JavaÐÔÄÜÆÊÎö]JVM Management API


      
JVM±¾ÉíÌṩÁËÒ»×é¹ÜÀíµÄAPI£¬Í¨¹ý¸ÃAPI£¬ÎÒÃÇ¿ÉÒÔ»ñÈ¡µÃµ½JVMÄÚ²¿Ö÷ÒªÔËÐÐÐÅÏ¢£¬°üÀ¨ÄÚ´æ¸÷´úµÄÊý¾Ý¡¢JVMµ±Ç°ËùÓÐÏ̼߳°ÆäÕ»Ïà¹ØÐÅÏ¢µÈ
µÈ¡£¸÷ÖÖJDK×Ô´øµÄÆÊÎö¹¤¾ß£¬°üÀ¨jps¡¢jstack¡¢jinfo¡¢jstat¡¢jmap¡¢jconsoleµÈ£¬¶¼ÊÇ»ùÓÚ´ËAPI¿ª·¢µÄ¡£±¾Æª¶ÔÕⲿ
·ÖÄÚÈݽøÐÐÒ»¸öÏêϸµÄ˵ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ