Array or ArrayList | Sololearn: Learn to code for FREE!


Array or ArrayList

Is this got different function between array and arraylist? When should we use array and when should we use arraylist?

9/28/2017 9:14:39 AM

Why Xiong Chee

1 Answer

New Answer


An array is static, meaning that you can't put more values to it once it is initialised. An array list can be extended dynamically (down in the API the stuff with putting everything to a new bigger array is handled for you, so you don't need to take care of this).