Similar Posts

Subscribe
Notify of
4 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
ZaoDaDong
1 year ago

“List” is an interface while “ArrayList” is an implementation of “List”. This is neither the same nor the same.

There are also alternative implementations of “List” such as “LinkedList”, which should be preferred if you add or remove something more often than you read it.

W00dp3ckr
1 year ago
Reply to  ZaoDaDong

Great answer.

jort93
1 year ago

List is an interface, so can be any type of list, an arraylist st a specific list.

Kwalliteht
1 year ago

For comparison:

There are one-dimensional coordinate systems, two-dimensional coordinate systems, three-dimensional coordinate systems …