What changed in Java 6
1 change across 1 question — each with the behaviour it replaced, because “and how did it work before?” is the follow-up.
When would you use LinkedList instead of ArrayList?
ArrayDeque and the Deque interface arrive. This is the release that made LinkedList redundant: ArrayDeque is faster at both ends and allocates no per-element node.
Before: LinkedList was the only thing in the JDK that could cheaply add and remove at the head, which is the entire historical reason it gets recommended.