Here you can find the source of length(Object[] array)
public static int length(Object[] array)
//package com.java2s; public class Main { public static int length(Object[] array) { if (array == null) return 0; return array.length; }/*from w w w . j a v a 2 s. co m*/ public static int length(int[] array) { if (array == null) return 0; return array.length; } public static int length(long[] array) { if (array == null) return 0; return array.length; } }