NRI FT India Interview Question

How does Java internally increase the size of an arraylist?