Object's hashCode() is indeed "native", which means here that it's implemented in the JVM itself (in C or assembly language, for example). But other classes can override this method in
Java -- for example, java.lang.String does so. That version computes the hash code from the characters of the
String.