Frage im Vorstellungsgespräch bei NRI FT India

How does Java internally increase the size of an arraylist?