Online Java Compiler By
JavaTpoint.com
public class IntegerHashCodeExample1 { public static void main(String[] args) { //Create integer object Integer i = new Integer("155"); //Returned hash code value for this object int hashValue = i.hashCode(); System.out.println("Hash code Value for object is: " + hashValue); } }
Output