Integer i=45; Integer k=45; System.out.println("i.hashcode= "+i.hashCode()); System.out.println("k.hashcode= "+k.hashCode()); System.out.println(i==k); System.out.println(i.equals(k)); Out Put: i.hashcode= 45 k.hashcode= 45 true true Great, it seems work fine! now change the value of i=k=201. Integer i=201; ...