If I override the hashCode() method but use non prime number for multiplication, I still get the same hashCodes for two same objects.
If I am correct, if the objects are the same their hash codes should also be the same. Accoding to my previous description this can be achieved even using non prime number. So I wanted to ask, what then, is the point of using prime number like 17 or 31? Why can't I just use non prime number?