写出下面方法的输出结果:
public static void main(String args[]) {
Integer a = 100;
Integer b = 100;
if (a == b) {
System.out.println("true");
} else {
System.out.println("false");
}
Integer c = 1000;
Integer d = 1000;
if (c == d) {
System.out.println("true");
} else {
System.out.println("false");
}
}
public static void main(String args[]) {
Integer a = 100;
Integer b = 100;
if (a == b) {
System.out.println("true");
} else {
System.out.println("false");
}
Integer c = 1000;
Integer d = 1000;
if (c == d) {
System.out.println("true");
} else {
System.out.println("false");
}
}
http://java.sun.com/docs/books/jls/third_edition/html/conversions.html#5.1.7