I figured out here with the lines and read the following thesis on one resource:
Since the string is immutable, its hashcode is cached at the time of creation and there is no need to count it again.
I got to java.lang.String and saw that at least the hashCode() method is there, but in the code itself this method is not called anywhere. I understand correctly that, in fact, when creating strings, the hash is not used and the thesis at the beginning is incorrect?