I looked into Java source code and the method is like follows:
public static Object newInstance(Class<?> componentType, int length)
throws NegativeArraySizeException {
return newArray(componentType, length);
}
private static native Object newArray(Class componentType, int length)
throws NegativeArraySizeException;
It seems it does not have any code in the method newArray()
to build an array. Can anyone explain how it builds an array? T