length variable in array

Can anybody tell me where(class/interface/enum) is variable 'length' defined?In int[] intArray = {9, 99}; System.err.println(intArray.length); Returns 2.Thanks
[281 byte] By [javapro99a] at [2007-11-27 5:38:50]
# 1

Go throgh java.lang.reflect.Array

It has public static Object newInstance(Class<?> componentType, int length)

and public static native int getLength(Object array)

getLength(Object array) is a native method, it returns lenth of the array.

Satish_Patila at 2007-7-12 15:12:58 > top of Java-index,Java Essentials,New To Java...
# 2

The array types are not documented in the API along with the other types. But they are dealt with in the JLS (http://java.sun.com/docs/books/jls/third_edition/html/arrays.html). "10.7 Array Members" describes the length field, the overridden clone() method and the fact that array types inherit other methods from their direct superclass: Object.

pbrockway2a at 2007-7-12 15:12:58 > top of Java-index,Java Essentials,New To Java...
# 3
> JLS> ( http://java.sun.com/docs/books/jls/third_edition/html> /arrays.html). "10.7 Array Members" Information provided here is not sufficient.
javapro99a at 2007-7-12 15:12:58 > top of Java-index,Java Essentials,New To Java...
# 4
you can refer API Documentation for java.lang.reflect.Array
Satish_Patila at 2007-7-12 15:12:58 > top of Java-index,Java Essentials,New To Java...
# 5
> Information provided here is not sufficient.I'm terribly sorry. That is very remiss of us. Let me rectify the situation right away.Do your own fucking research!
floundera at 2007-7-12 15:12:58 > top of Java-index,Java Essentials,New To Java...