Array Length vs. Capacity
Array capacity is how many items an array can hold, and array length is how many items an array currently has.
Array Length vs. Capacity
Core language
Errors & fixes
Apache Kafka
Relational
NoSQL & caching
Errors & fixes
Course · javahandbook.com
Oracle Interview Mastery
200 questions · 19 chapters
View course →Interview courses
Array capacity is how many items an array can hold, and array length is how many items an array currently has.
Array Length vs. Capacity