What is the difference between Array and ArrayList in Java ?
What is the difference between Array and ArrayList in Java ?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and share their programming knowledge and build their careers.
{1}Array is static in nature[length is fixed].You can’t change its size once it is created.
ArrayList is dynamic in nature. ArrayList is also called as dynamic array or re-sizable array.
{2}The size of an array can be checked using its attribute called length.
The ArrayList provides method called size() to check its size.
{3}Array is multi-dimensional. You can have one, two or three dimensional arrays.
ArrayList is one dimensional.