Java tutorial
import java.util.Arrays; public class Main { public static void main(String[] args) { Object[] ob = { "java2s", "java2s.com" }; // deephashcode for object ob int retval = Arrays.deepHashCode(ob); System.out.println("The Hash Code of ob is:" + retval); } }