Hashcode is indeed creating two objects

Sir said that if two objects are having same hashcode then there won’t be two different objects.
doubt

this is giving the output of :
Student@0…Student@0
1…abc
2…pqr

If you actually override hashCode() function and return 0, then ofcourse they are always going to be 0