I have a basic question on Java ArrayList.
ArrayList
When ArrayList is declared and initialized using the default constructor, memory space for 10 el
The default size of the arraylist is 10. When we add the 11th ....arraylist increases the size (n*2). The values stored in old arraylist are copied into the new arraylist whose size is 20.