What is the output of the following Java program?
public class Main {
public static void main(String[] args) {
Integer a = 100, b = 100, c = 1000, d = 1000;
System.out.println((a == b) + " " + (c == d) + " " + c.equals(d) + " " + (c == 1000));
}
}
100 comes from the cache; 1000 does not. c == 1000 unboxes c and compares ints.