JAVA¿ª·¢ÖÒ¸æ £¨ÐÂÊֱضÁ£¬ÀÏÊÖ·¹ý^_^£©
д¸ø±ÈÎÒ»¹ÐµÄÐÂÊÖÃÇ£¬Èç¹ûÑ¡ÔñÁËÕâÐУ¬¾ÍÄÍÐĵĶÁÏÂÈ¥¡£
1£¬²»Òª×Ü˵“±à²»³öÀ´”£¬“²»»á±à”Ö®ÀàµÄ»°£¬ÄÇЩ»°ÊÇÒòΪÄã×Ô¼ºÀÁ£¬²»Ïë±à£¬²»Ïëѧ¶øÒÑ¡£
2£¬²»ÒªÄÜ¿ª·¢µãС³ÌÐò¾Í³öÈ¥ÏÔ°Ú£¬ÄãÖ»²»¹ýÊÇÓñðÈ˸øÄãдºÃµÄ¶«Î÷¶øÒÑ¡£
3£¬²»ÒªÌ«Ö´×ŵĶ¢×ÅAPI£¬JAVAµÄ¾«»ªÔÚÓÚ±à³Ì˼·¸úģʽ£¬¶ø²»ÊÇÒѾ¹Ì¶¨ºÃµÄÓï¾ä¡£
4£¬²»ÒªÁßØÄ£¬¿ªÔ´²ÅÊÇÌá¸ßÍŶӼ¼Êõ×î¿ì£¬×îÓÐЧµÄ;¾¶¡£
5£¬²»Òª¾³£»»ÓïÑÔ£¬¿ªÊ¼Ñ¡ÔñʲôÓïÑÔ£¬¾Í¼ÌÐø¼á³ÖÏÂÈ¥£¬·ñÔòÓÀÔ¶ÊÇÐÂÊÖ¡£
6£¬²»Òª¾³£ÎªÁËд³ÌÐò¶ø°¾Ò¹£¬±à³Ì¿¿µÄÊÇ˼·£¬Ã»ÓÐÇåÎúµÄÍ·ÄÔºÜÄѱà³öºÃ³ÌÐò¡£
7£¬²»ÒªÒÔΪ±à³ÌºÜÄÜÕõÇ®£¬¾ÍͶÈëµ½Õâ¸öÐÐÒµÉÏ£¬²»¹ÜÄĸö¶«Î÷£¬Ö»Òª³É¾«ÁË£¬¶¼ÄÜÕõÇ®¡£
8£¬²»Òª¿´Íê±ðÈËдµÄ¶«Î÷£¬¾ÍÍêÊÂÁË£¬Ïëѧ±à³Ì£¬¾ÍµÃÎÞʱ²»¿ÌµÄµãÊó±ê£¬ÇüüÅÌ£¬³ý·ÇÄãÊǹýÄ¿²»ÍüµÄ“Éñ***ͯ”¡£
9£¬²»ÒªÌ«ÃÔÁµÒÔÇ°µÄ³É¾Í£¬Òª¼áÐŽñÌìдµÄ´úÂëÓÀÔ¶±ÈÃ÷ÌìµÄÀá£
×îºó£¬Ç§ÍòǧÍò²»ÒªÒÔΪ»ù´¡²»ÖØÒª£¬·ñÔòÄã»áÏñÏÖÔÚµÄÎÒÕâÑù£¬»¹µÃÖØÐÂÏÂÔØJAVA½Ì³Ì£¬´ÓIOÀ࿪ʼѧϰ¡£^_^
¡¡¡¡¡¡¡¡¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡ÒÔÉÏÊÇд¸ø¸÷λÐÂÊÖµÄһЩ½¨Ò飬ҲÊǶÔ×Ô¼ºµÄÖҸ棬±Ï¾¹´ó¼Ò¶¼ÊÇÐÂÊÖ£¬¾Í»¥ÏàÑо¿ÏÂÁË¡£
Ïà¹ØÎĵµ£º
Class.forName(xxx.xx.xx) ·µ»ØµÄÊÇÒ»¸öÀà
Ê×ÏÈÄãÒªÃ÷°×ÔÚjavaÀïÃæÈκÎclass¶¼Òª×°ÔØÔÚÐéÄâ»úÉϲÅÄÜÔËÐС£Õâ¾ä»°¾ÍÊÇ×°ÔØÀàÓõÄ(ºÍnew ²»Ò»Ñù£¬Òª·ÖÇå³þ)¡£
ÖÁÓÚʲôʱºòÓã¬Äã¿ÉÒÔ¿¼ÂÇÒ»ÏÂÕâ¸öÎÊÌ⣬¸øÄãÒ»¸ö×Ö·û´®±äÁ¿£¬Ëü´ú±íÒ»¸öÀàµÄ°üÃûºÍÀàÃû£¬ÄãÔõôʵÀý»¯Ëü£¿Ö»ÓÐÄãÌáµ½µÄÕâ¸ö·½·¨ÁË£¬²»¹ýÒªÔÙ¼ÓÒ»µã¡£
A a = ......
¹ØÓÚJavaÒç³ö·ÖÀ࣬ÎÒ¾³£Åöµ½µÄÊÇÁ½ÀࣺһÀàÊÇjava.lang.OutOfMemoryError: Java heap space£¬Ò»ÀàÊÇjava.lang.OutOfMemoryError: PermGen space¡£
ÔÚÕâÁ½ÀàÖУ¬Ç°ÕßÅö¼ûµÄ´ÎÊý±È½ÏƵ·±¡£ÒòΪµ¼ÖÂJava heap spaceµÄÇé¿ö£¬ÓÐʱºò²¢²»ÊÇÄÚ´æ²»¹»£¬ËüÒ²»áÅ×´Ë´íÎóÐÅÏ¢¡£ÀýÈçÎÒ¾ÍÅöµ½¹ýÕâÑùµÄÇé¿ö£¬ÎÒµ±Ê±Í¨¹ýGCÈÕÖ¾·¢ÏÖ£¬ÄÚ´ ......
ת×Ôhttp://blog.csdn.net/kabini/archive/2007/07/25/1707747.aspx
Ç°ÑÔ
±¾ÎÄÇ°ÑÔ²¿·ÖΪÎÒµÄһЩ¸ÐÏ룬Èç¹ûÄãÖ»¶Ô±¾ÎĽéÉܵÄJavaʵÓü¼ÇɸÐÐËȤ£¬¿ÉÒÔÌø¹ýÇ°ÑÔÖ±½Ó¿´ÕýÎĵÄÄÚÈÝ¡£
±¾ÎĵÄд×÷¶¯»úÀ´Ô´ÓÚ×î½ü½Ó¸øÈ˼ҰïæдµÄÒ»¸öС³ÌÐò£¬Ö÷ÒªÓÃÓÚ¹ÜÀí·ÖÆÚ¸¶¿îµÄ»õ¿îµÄһϵÁйÜÀí£¬°üÀ¨¹ýÆÚ¿îµÄ¼Í¼£¬¹ýÆÚ¿îÀûÏ ......
keytoolÉú³ÉÖ¤Êé
ÑéÖ¤ÊÇ·ñÒÑ´´½¨¹ýͬÃûµÄÖ¤Êé
keytool -list -v -alias tomcat -keystore "%JAVA_HOME%/JRE/LIB/SECURITY/CACERTS" -storepass changeit
ɾ³ýÒÑ´´½¨µÄÖ¤Êé
keytool -delete -alias tomcat -keystore "%JAVA_HOME%/JRE/LIB/SECURITY/CACERTS" -storepass changeit
´´½¨Ö¤Êé
1.·þÎñ ......
package debug;import java.io.*;import java.lang.Thread;class MyThread extends Thread{ public int x = 0; public void run(){ System.out.println(++x); }}class R implements Runnable{ private int x = 0; public void run(){ System.out.printl ......