Even if you override, while calculating hash of the object before putting it into hashmap as Key, it is still referring to hashcode method in Object class and giving some int value.

I have overriden one method which will just returning the same value for all the objects to test hashcode but every time it is getting the value form Object class's hashcode method which is implemented in native language.

If it is not executing the overriden hashcode method from user defined class then what is the purpose of implementing hash code?

```
public class Product { 
    public String name ; 
    public int id;
    public int hashcode(){ int result = 1; return result; } 
}

```

ideally hashcode of all product objects is 1 but i am getting something like 952115109
540724846...
why is this??