+ 3

How is ArrayList stored in memory and how does it work when its size is full?

ArrayList memory management

14th May 2020, 8:08 PM
Pratik Shah
2 Answers
+ 4
Perfect one đŸ”±DEEPUđŸ”± , but it does not increase the memory twice its initial capacity. Formula of it is : current capacity * 3/2 + 1 ArrayList has performance issues when its size grows and its not recommended to use when not required!
15th May 2020, 1:53 AM
Pratik Shah