Here you can find the source of length(final Object[] array)
public static int length(final Object[] array)
//package com.java2s; public class Main { public static int length(final Object[] array) { return (array == null ? 0 : array.length); }/*from w w w . jav a2 s. c o m*/ }