Hi,
The last I remember I had a question along similar lines and Jim Yingst pointed that as array object have length field which is of type 'int' we can only create arrays of len Integer.MAX_VALUE. Again this is true only if we have sufficient memory to create Integer.MAX_VALUE size array.
I ran the following,
and got,
java.lang.OutOfMemoryError
Exception in
thread "main"
Regards
Maulin
[ March 04, 2005: Message edited by: Maulin Vasavada ]