Is using ArrayList good practice for a regular software engineering job?

There is a reason you would go through a LinkedList over an ArrayList. LinkedList are a proper data-structure and is language agnostic where you have a node with two properties, data and a reference to the next node in the list (sometimes the previous as well), while ArrayList is specific to Java which is an array that resizes itself automatically so that you can continue adding without worrying if the array will run out of space. (every language has a similar idea but different in name).

While it’s cool to get ahead, it’s important to learn all the data structures at your disposable, when it’s best to use them and then always default to ArrayList anyway :P.

/r/java Thread Parent