For example, if I create an A type object,
A a = new A();
then a is a reference on the Stack that points to a A type object on the heap. My question is, if I call a.hashCode(), which one's hash code will be returned, the hashcode of the reference or the hashcode of the object? if it is the hashcode of the object, how can i get the hashcode of the reference? Could anyone kindly give me some tips plz?