日期:2014-05-20 浏览次数:20678 次
int a = 3;
int b = 3;
Integer c = new Integer(3);
System.out.println(a == b);
System.out.println(a == c);
package csdn.programbbs_625;
public class TextHeapStack {
public static void main(String[] args) {
int a = 3;
int b = 3;
Integer c = new Integer(3);
Integer d = new Integer(3);
System.out.println(a == c);
System.out.println(d == c);
}
}
public class Test{
public static void main(String[] args){
int a = 3;
Integer c = new Integer(3);
boolean d = (a==c);
}
}
public static void main(java.lang.String[]);
flags: ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
0: iconst_3
1: istore_1
2: new #2 // class java/lang/Integer
5: dup
6: iconst_3