NRI FT India interview question

How does Java internally increase the size of an arraylist?