I am not asking about the difference between Arrays and ArrayList<> as I "guess" I know most of them, a brief summary of the most important ones:
- Fixed length data for
Arrays, while dynamic and automatically growing size forArrayList<> - Use of generics (
ArrayList<>) - String primitives (
Arrays of Objects, but it's off the topic of my subject here, as I am talking aboutArrays of Objects) - Several small differences on variable and method naming:
length,size(),add()
So, IMO the most important points indicate that we should use ArrayList<> over arrays of object, even answers of Array or List in Java. Which is faster? indicate that ArrayList<> are faster or more advised! I can easily recognize when I should use ArrayList<> but I can't see any specific use case for Arrays of Objects!
In a nutshell, when should we use Arrays of Objects?
()for the variablelength!