according to one question at javaranch round up game, following will return false :
Integer a = new Integer(5);
Integer b = new Integer(5);
if (a==b);
this if statement will return false according to
java ranch but the correct answer is true as JVM keeps single object for Integer and Short within the range -128 to 127.
hence the result of this if should be true