Sobes.tech
Junior

What is the initial size of ArrayList?

sobes.tech AI

Answer from AI

The initial size of an ArrayList without specifying a constructor is 0, meaning it is empty. Memory allocation for the internal array occurs upon the first addition of an element, at which point its size (capacity) becomes 10.