Fun with Java

This is my favorite question to ask on an interview:

Given this java program, what is the output and why?

public class test
{
	public static void main (String args[])
 	{
		Integer a = 5;
		Integer b = 5;
		Integer c = 2000;
		Integer d = 2000;
		if(a == b)
			System.out.println("a==b");
		else
			System.out.println("a!=b");
		if(c==d)
			System.out.println("c==d");
		else
			System.out.println("c!=d");
	}
}

The Answer