Pregunta de entrevista de NRI FT India

How does Java internally increase the size of an arraylist?