I have a written a class like
public class HashCodeImpl{
    public int hashCode(){
        return 1;
    }
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        HashCodeUtil h=  new HashCodeUtil();
        HashCodeUtil h1=  new HashCodeUtil();
        System.out.println(h.hashCode());
        System.out.println(h1.hashCode());
        System.out.println(h);
        System.out.println(h1);
        System.out.println(h==h1);
    }
}
OutPut:
1 
com.manu.test.HashCodeUtil@1  
com.manu.test.HashCodeUtil@1 false
My question is: when my hashCode method is returning same value then why
System.out.println(h==h1); 
is coming false?
Please explain.
 
     
     
     
    