How does LinkedList work internally in Java?
问题 As far as I know, the concept of a linked list is a bunch of object connected to each other by having a 'next' and sometimes 'previous' attribute to traverse the objects. I noticed in Java, you can create a LinkedList object...but treat it like an array/list/sequence by using the same methods such as .add(), .get(), etc. So, is LinkedList internally an array-like sequence? 回答1: So, is LinkedList internally an array-like sequence? No. It's a series of instances of a private nested class Entry