Anyone tell me how java create hashcode internally ?
package swain.javainterviewhub.blogspot.in;
    public class JavaInterviewHub {
        public static  void main(String[] args) {
           String str="Alex";
           System.out.println(str.hashCode());
        }
    }
    Output:2043454
Key Hashcode Algorithm Hashcode
Alex A(1) + L(12) + E(5) + X(24)=42
 
     
    