String obj1 = new String("abc");
String obj2 = new String("abc");
if(obj1.hashCode() == obj2.hashCode())
System.out.println("hashcode()");
if(obj1==obj2))
System.out.println("==");
it prints hashcode() ,but why it does not print == as hashcode of both objects are same ?
having same hashcode doesn't mean references are pointing to same object?