java×Ö½ÚÂëѧϰ±Ê¼Ç
֮ǰÔÚ×öfindbugsµÄʱºò¾³£»á²é¿´×Ö½ÚÂ룬¶¼ÊÇÒ»Öª°ë½âµÄ
ÄÇÌì¿´µ½Ò»¸öÎÊÌ⣬¸ÕºÃ¿ÉÒÔ´Ó×Ö½ÚÂëÀ´½âÊÍ
ÕâЩÌâÄ¿³£¼ûÓÚÃæÊÔÌ⣬ͨ³£ÒªÊÇ˸ÒÕâôд´úÂ룬ÍêÈ«ÊÇÔÚÕÒËÀ¡£¡£
Java´úÂë
public class Test {
public static void main(String[] args) {
int i=0;
i=i++;
System.out.println(i);
}
}
public class Test {
public static void main(String[] args) {
int i=0;
i=i++;
System.out.println(i);
}
}
´ó¼Ò˵ÕâÀïΪʲô»áÊä³ö0ÄØ£¬ÕâÀïÎÒÃÇ´Ó×Ö½ÚÂëµÄ½Ç¶È½âÊÍ
ͨ¹ý·´±àÃüÁîjavap –c classnameÀ´»ñµÃ×Ö½ÚÂë
Java´úÂë
Compiled from "Test.java"
public class Test extends java.lang.Object{
public Test();
Code:
0: aload_0
1: invokespecial #8; //Method java/lang/Object."<init>":()V
4: return
public static void main(java.lang.String[]);
Code:
0: iconst_0
1: istore_1
2: iload_1
3: iinc 1, 1
6: istore_1
7: getstatic #16; //Field java/lang/System.out:Ljava/io/PrintStream;
10: iload_1
11: invokevirtual
Ïà¹ØÎĵµ£º
¡¾Òý×Ô¼üÅÌÉϵÄÎèÕߵIJ©¿Í¡¿Í¼Ïñ±àÂëÊä³öµÄ·½·¨£¬Ìṩ±àÂë½ø¶È¼àÌý£¬ÉèÖñàÂëÖÊÁ¿µÄÖ§³Ö£¨Ìض¨¸ñʽ£¬ÀýÈçJPG£©¡£
Õâ¸ö·½·¨Ö§³ÖµÄ±àÂë¸ñʽÒÀÀµÔËÐл·¾³ÀïImageIOÒѾע²áImageWriter¼¯ºÏ¡£
Java SE 6ÖеÄImageIOĬÈÏÖ§³ÖJPG£¬BMP£¬PNG£¬GIFµÈ¸ñʽ£¬Ò²¿ÉÒÔͨ¹ý·Ç±ê×¼Àà¿âÌí¼ÓImageIO¶ÔͼÏñ¸ñʽµÄÖ§³Ö£¬±ÈÈç°²×°JAI_ImageIO¡ ......
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
public class Temp {
public Temp() {
JFrame J = new JFrame("MENU");
Container C = J. ......
ÊäÈëÒ»ÐÐÊý×Ö£¬Èç¹ûÎÒÃÇ°ÑÕâÐÐÊý×ÖÖеđ5’¶¼¿´³É¿Õ¸ñ£¬ÄÇô¾ÍµÃµ½Ò»ÐÐÓÿոñ·Ö¸îµÄÈô¸É·Ç¸ºÕûÊý£¨¿ÉÄÜÓÐЩÕûÊýÒÔ‘0’¿ªÍ·£¬ÕâЩͷ²¿µÄ‘0’Ó¦¸Ã±»ºöÂÔµô£¬³ý·ÇÕâ¸öÕûÊý¾ÍÊÇÓÉÈô¸É¸ö‘0’×é³ÉµÄ£¬ÕâʱÕâ¸öÕûÊý¾ÍÊÇ0£©¡£
ÄãµÄÈÎÎñÊÇ£º¶ÔÕâЩ·Ö¸îµÃµ½µÄÕûÊý£¬ÒÀ´ÓСµ½´óµÄ˳ÐòÅÅÐ ......
Ò»¡¢ÎÊÌâµÄÌá³ö
JavaµÄÒ»¸öÖØÒªÓŵã¾ÍÊÇͨ¹ýÀ¬»øÊÕ¼¯Æ÷(Garbage Collection£¬GC)×Ô¶¯¹ÜÀíÄÚ´æµÄ»ØÊÕ£¬³ÌÐòÔ±²»ÐèҪͨ¹ýµ÷Óú¯ÊýÀ´ÊÍ·ÅÄÚ´æ¡£Òò´Ë£¬ºÜ¶à³ÌÐòÔ±ÈÏΪJava²»´æÔÚÄÚ´æй©ÎÊÌ⣬»òÕßÈÏΪ¼´Ê¹ÓÐÄÚ´æй©Ҳ²»ÊdzÌÐòµÄÔðÈΣ¬¶øÊÇGC»òJVMµÄÎÊÌâ¡£Æäʵ£¬ÕâÖÖÏë·¨ÊDz»ÕýÈ·µÄ£¬ÒòΪJavaÒ²´æÔÚÄÚ´æй¶£¬µ«ËüµÄ±íÏÖÓëC ......
±¾ÎÄÄÚÈÝÕª×Ô£º¡¶Java Web¿ª·¢½Ì³Ì——ÈëÃÅÓëÌá¸ßƪ£¨JSP+Servlet£©¡·
ÏÂÃæÒÔ×¢²á¹ý³ÌÖÐÓû§ÃûÊÇ·ñ´æÔÚµÄÑé֤ΪÀý½éÉÜAJAXµÄÓ¦Óá£
¹¦ÄÜÃèÊö£ºÓû§×¢²áµÄÓû§Ãû²»ÔÊÐíÖظ´£¬ËùÒÔÔÚÓû§ÌύʱºòÐèÒªÅжϡ£ÎªÁËÈÃÓû§ÔçÖªµÀ½á¹û£¬ÔÚÓû§ÊäÈëÓû§ÃûÖ®ºó¾ÍÓ¦¸Ã½øÐÐÅжϣ¬¿ÉÒÔ²ÉÓÃAJAX½øÐд¦Àí¡£
¼ÙÉ裺ΪÁ˼ò»¯´ú ......