Java tutorial
import java.util.Arrays; public class Main { public static void main(String[] args) { // initializing Object array Object[] ob = new Object[] { 22, 7 }; System.out.println(Arrays.hashCode(ob)); System.out.println(ob.hashCode()); } }