Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java arraylist max length

The theoretical limit for ArrayList capacity is Integer. MAX_VALUE, a.k.a. 2^31 - 1, a.k.a. 2,147,483,647. But you'll probably get an OutOfMemoryError long before that time because, well, you run out of memory
 
PREVIOUS NEXT
Tagged: #java #arraylist #max #length
ADD COMMENT
Topic
Name
5+7 =