[java] How is length implemented in Java Arrays?