Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Arraylist default size is 10?

725337Oct 8 2009 — edited Oct 8 2009
I was getting through the javadoc of ArrayList and I found that the capacity of the ArrayList to be 10 for the default constructor. Why 10?
Reference: [http://java.sun.com/j2se/1.4.2/docs/api/java/util/ArrayList.html#ArrayList%28%29]
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 5 2009
Added on Oct 8 2009
9 comments
602 views