java - Array vs. ArrayList - Why would you use one over the other? -
this question has answer here:
- benefits of arrays 9 answers
so understand arraylist has variable length unlike array, of advantages of using 1 on other?
array takes less space , typically faster, arraylist lets add , remove elements array (can useful lot of reasons).
Comments
Post a Comment