Pergunta de entrevista da empresa NRI FT India

How does Java internally increase the size of an arraylist?