My professor told us that Linked Lists are used as an industry standard with Java based programming over Arrays/Array Lists. Is that true, are there any professionals that use one or the other or a mix of them, or is there something else you use?
Asked
Active
Viewed 46 times
1
-
2They solve different tasks, why would one replace the other? – phflack Jan 29 '18 at 20:46
-
I personally prefer `ArrayList` as it provides better random access performance over `LinkedList`, but is limited by the constraints of the backing array. So, it's a matter of the right tool for the right job – MadProgrammer Jan 29 '18 at 20:47
-
2`ArrayList` is definitely the default. – chrylis -cautiouslyoptimistic- Jan 29 '18 at 20:51
-
5Your professor lives in an alternate reality. – shmosel Jan 29 '18 at 20:57
-
`LinkedList` is terrible for cache locality. I remember [DrDeprecator](https://twitter.com/drdeprecator/status/668447303481495552) saying that it might be deprecated, but other things to deprecate first. – Jorn Vernee Jan 29 '18 at 20:59
-
1I have never seen anyone using `LinkedList` and never seen professors actually working on code used by industry. – tsolakp Jan 29 '18 at 21:13