Ok manfred here it is. I totally understand it now, I think.
class
Test {
public int i;
public int hashCode() {return 1;}
public boolean equals(Object o)
{Test t = (Test) o; return t.i == i;}
Test(int p_i) {i=p_i;}
public static void main(
String args[]) {
Test t1= new Test(1);
Test t2= new Test(1);
//t1.hashCode().equals(t2.hashCode()); //does not work: int cannot be dereferenced
Integer IT3 = t1.hashCode();
if (IT3.equals(t2.hashCode()))
System.out.print("Yes"); // output here is Yes though
else
System.out.print("No");
}
}