Online Java Compiler By
JavaTpoint.com
public class IntegerHashCodeExample3 { public static void main(String[] args) { Integer i = new Integer("abcd"); // returns a hash code value for this object int result = i.hashCode(); System.out.println("Hash Code Value= " + result); } }
Output